ephphatha
24a20ce8e2
Extract uses of MyPlayer to prevent future crashes in tests/game init
3 years ago
ephphatha
fb97eb7114
Clean up hit detection for inventory slots when pasting large items
3 years ago
Stephen C. Wills
45dbe6aa61
Shift software cursor graphic and remove special casing ( #6512 )
3 years ago
Anders Jenbo
c91e69384a
Revert "Fix cursor jitter when clicking inv items ( #6510 )"
...
This reverts commit 2a393397a1 .
3 years ago
Eric Robinson
2a393397a1
Fix cursor jitter when clicking inv items ( #6510 )
3 years ago
Gleb Mazovetskiy
8c1a847f41
Remove utils/stdcompat/string_view.hpp
3 years ago
Gleb Mazovetskiy
c19bfe87fa
Remove utils/stdcompat/algorithm.hpp
3 years ago
Gleb Mazovetskiy
14540164a7
Remove utils/stdcompat/optional.hpp
3 years ago
Gleb Mazovetskiy
62d067b653
Remove utils/stdcompat/abs.hpp
3 years ago
staphen
a090ab7d5c
Apply position-based quest completion logic to Single Player
3 years ago
staphen
9381251b9d
Fix net validation of durability for items without durability
3 years ago
Anders Jenbo
89a677d0cb
Validate item modifier ranges
3 years ago
Anders Jenbo
23e479e9aa
Remove unused item properties from network
3 years ago
staphen
956574bfa2
Also disallow boosted stats for ground items
3 years ago
Anders Jenbo
01a7966f1d
Empty cursor when closing inventory
...
Fixes #4205
3 years ago
obligaron
c8f1804d04
Spawn Optic Amulet and Arkaine's Valor always at the same tile ( #6167 )
...
* Spawn Optic Amulet and Arkaine's Valor always at the same tile
* Multiplayer: To complete Halls of Blind and Arkaine's Valor also check drop position, because quest rewards items can be randomized
3 years ago
qndel
ddd0f1b051
dont always force staff recharge to change spell
3 years ago
obligaron
31fe55a161
Prevent hellfire quests from disapearing from quest log
3 years ago
ephphatha
9987bb6be2
Avoid unnecessary item initialisation and copy
3 years ago
ephphatha
6b21728440
Inline single use function InvPutItem
3 years ago
ephphatha
4f3c70aa95
Move PlaceItemInWorld to items.h/cpp
...
Seems like a more appropriate home
3 years ago
ephphatha
06f6ff78f2
Extract common logic for a player dropping an item
...
The other class of use appears to be items spawned from NPCs or being dropped on death which shouldn't consider the CornerStone. Need to sort those later
3 years ago
ephphatha
eac22b935d
Make functions that create and place an item in the world more similar
3 years ago
Gleb Mazovetskiy
4fa3732526
Add missing <cstdint> includes
...
Done with the following script:
```ruby
Dir["Source/**/*.{h,c,cc,cpp,hpp}"].each do |path|
v = File.read(path)
next if !v.include?("uint32_t") || v.include?("cstdint")
lines = v.lines
line_num = if lines[2].start_with?(" *")
lines.index { |l| l.start_with?(" */") } + 3
else
3
end
lines.insert(line_num, "#include <cstdint>\n")
File.write(path, lines.join(""))
end
```
then fixed-up manually
3 years ago
ephphatha
03e35988f1
Dedupe OnRespawnItem/OnSpawnItem
...
Both methods were exactly the same apart from the use of temporaries for swapped message params.
3 years ago
ephphatha
3a7ae732cd
use unsigned types for item seeds
3 years ago
obligaron
b87711bc08
Reintroduce Player::spellFrom to seperate teleport cursor from queued spell
3 years ago
qndel
ce2ce86070
inspect players command
3 years ago
obligaron
c4388b0d41
Remove unused pnum from UseInvItem
3 years ago
obligaron
1522dc7031
Multiplayer: Add arena potions
3 years ago
obligaron
590c990c80
Introduce Item::getName
3 years ago
ephphatha
94c646ef8f
Use rectangles for inventory/belt hit areas
3 years ago
obligaron
6e364f2167
Telekenisis respects Disable Crippling Shrines Setting
3 years ago
obligaron
44de539afb
Introduce CronerStoneStruct::isAvailable()
3 years ago
staphen
5e832e75d9
Fix alignment for 2x2 armor sprite in the chest slot
3 years ago
obligaron
715e689ecb
Introduce Item::isUsable()
3 years ago
Gleb Mazovetskiy
ebcd6b222d
Optimize `SpellData` size: 40 bytes -> 24
3 years ago
KPhoenix
a1fbf5253f
`enum talk_id` -> `enum class TalkID`
3 years ago
obligaron
2d4e84c561
Multiplayer: Enable Black Mushroom Quest
3 years ago
Gleb Mazovetskiy
b61dac853b
Add `GetSpellData(SpellID)`
3 years ago
KPhoenix
d813f13700
`enum spell_id` -> `enum class SpellID`
3 years ago
Gleb Mazovetskiy
1788d2f8ec
Remove miniwin
...
Event handling code moved to `engine/events.{hpp,cpp}`.
3 years ago
obligaron
a935066180
Multiplayer: Enable Halls of the Blind Quest
3 years ago
Gleb Mazovetskiy
4f9e9e04b1
Fix ConsumeScroll
...
Fixes #5617
3 years ago
obligaron
600cb656fb
Multiplayer: Enable Arkaine's Valor Quest
3 years ago
obligaron
a45ba2895e
Multiplayer: Enable Anvil of Fury Quest
3 years ago
Gleb Mazovetskiy
3afef6299f
Level renderer: Remove `cel_transparency/foliage_active` globals
3 years ago
obligaron
d912babc91
Multiplayer: Enable Magic Rock Quest
3 years ago
Gleb Mazovetskiy
680ab5ec40
Overhaul backbuffer state handling
...
When rendering directly to the output buffer, we need to maintain the
state of what has been drawn and what needs redrawing per-buffer.
We previously tried to do it implicitly by checking `SDL_DOUBLEBUF` and
other flags. The previous implementation was broken in several
ways, resulting in rendering issues on devices that support 8-bit output
directly.
Changes this mechanism to explicitly maintain buffer state per output
buffer. The new mechanism doesn't require knowledge of the number of
buffers, and thus also works correctly with triple-buffering.
Fixes #5447
3 years ago
KPhoenix
069ba7f1d4
[QOL] Colored slot backs ( #5266 )
3 years ago