Vladimir Olteanu
861fb99e9d
Quick cast
4 years ago
Gleb Mazovetskiy
0e63b3ee0b
Update clang-format-check GitHub Workflow
...
Taking this opportunity as we've just done a global reformat and it's
quite small.
4 years ago
obligaron
635f378722
Add OptionEntry Experience Bar
4 years ago
obligaron
e1f97603ae
Add OptionEntry Walking Sound
4 years ago
ephphatha
baa1cd65c5
Make FindGetItem return an index into ActiveItems
...
This allows the calling code in DeltaLoadLevel to behave the same as every other use of DeleteItem, making it possible to remove the duplicate argument and ensure that the ActiveItems/AvailableItems arrays are treated appropriately.
4 years ago
obligaron
1ed4490497
Remove Player.deathFrame and deathdelay and fix death by object animation
4 years ago
KPhoenix
c52a107eb8
Prevent Spell Targeting Players with Friendly Mode enabled
...
Prevents players from targeting each other with spells in the same way that players are prevented from targeting each other with weapons when Friendly Mode is enabled
4 years ago
obligaron
677303cba9
Reduce use of view globals in game menu
4 years ago
ThomasChr
cbda2c848d
When blocking with staff (only monk) also decrease durability as with a shield
4 years ago
ThomasChr
0f1bd30e65
Change log message to correct function name
4 years ago
Andrew James
8104432db4
Use object reference (and self-id lookup) for BreakBarrel
4 years ago
ephphatha
730f0e65d5
Introduce FindClosestValidPosition function
...
The pre-calculated crawl table is replaced with partially unrolled loops to handle the special cases covered by the table.
Arbitrary limit of 50 placed to allow using this function for searches where vanilla logic would check up to (±49, ±49).
4 years ago
Andrew James
796e2813cf
Use scoped enums for DungeonFlags/BFLAG ( #3135 )
4 years ago
Gleb Mazovetskiy
3d308983a8
Migrate to libmpq
...
libmpq is a much simpler alternative to StormLib for reading MPQ archives.
We use our own fork of libmpq: https://github.com/diasurgical/libmpq
Impact:
* DevilutionX is now a lot more portable. Unlike StormLib, libmpq only
needs platform-specific code for Windows.
* Locks around file access **removed** (instead we duplicate the file descriptor for streamed audio only).
* RAM usage is **300 KiB** lower than StormLib.
* Stripped release linux_x86_64 binary is **32 KiB** smaller.
* Amiga build now hangs instead of crashing.
4 years ago
Gleb Mazovetskiy
64a88343e8
Refactor: Use item iterators in 7 more places
4 years ago
Anders Jenbo
96e1d5caba
Fix spell properties incorrectly being capped at 8
...
Fixes #3187
Revert #3021
destParam3 had been typed ad Direction, but is also sometimes used for
other values.
4 years ago
qndel
eba6d827bf
fix typos ( #3238 )
4 years ago
qndel
0ccdf940f7
fix bounds checks ( #3237 )
4 years ago
qndel
d81de165d4
code cleanup ( #3235 )
4 years ago
staphen
2920127f59
Optimize SyncInitPlrPos()
4 years ago
qndel
f8cda02456
apply bounds check function
4 years ago
ephphatha
0f593c17e4
Remove pointless increments of life/mana on level up
...
fixes #3049
5 years ago
obligaron
6b8b6ba77b
Fix OnSpellTile check ( #3021 )
5 years ago
staphen
a7e2abeb72
Restore original Warrior death sound
5 years ago
qndel
873e426952
fix light stealing ( #2992 )
5 years ago
Anders Jenbo
490343ae0c
Fix quater damage in Hellfire
5 years ago
obligaron
0818c55b88
Holding mouse when shift is held shouldn't lock to a target (Spells)
5 years ago
obligaron
16d98d48c3
Fix melee friendly fire when sgOptions.Gameplay.bFriendlyFire is set
5 years ago
Gleb Mazovetskiy
ec13c333a9
Refactor: Use item iterators for scroll checks
...
Refs #2586
5 years ago
obligaron
261403558b
Fix SetPlayerGPtrs with RUN_TESTS definied
5 years ago
Gleb Mazovetskiy
4e1ad7ab65
LoadFile: Avoid opening the file twice
...
Previously we were passing the path to `GetFileSize`, which resulted in
opening and closing the file twice.
5 years ago
obligaron
f9192d2312
Remove debug command line argument -^ (Enable debug tools) and added
...
scrollview debug command
5 years ago
obligaron
c7dec38b96
Player: rename _pVar4 to spellLevel
5 years ago
obligaron
c3c91f6e28
Remove _pVar5 and most uses of BFLAG_PLAYERLR
5 years ago
obligaron
e62aaa562f
Fix missiles don't hit horizontal walking players/monsters
5 years ago
obligaron
f77da8a580
Ensure ScrollInfo is initialized correctly
5 years ago
Juliano Leal Goncalves
9ac324b8e1
🐛 Prevent manipulation of spell type being cast ( #2856 )
...
This prevents frame-perfect manipulated of the spell type after the command has already been sent.
5 years ago
Juliano Leal Goncalves
379a27b64a
♻️ Convert 'ItemType' enum to enum class
...
🎨 Rename 'ItemType' elements to enum class standards
5 years ago
ephphatha
87a33097a0
Rename ScrollDirection enum to follow convention
...
Pretty sure the backing type can be left to the default as well but I haven't had the time to investigate where it's used fully.
5 years ago
ephphatha
b12de6fe12
Use scoped enum for Direction
...
Identified and removed an instance of Direction being used as an argument for a bool parameter
Removed a single-use temporary variable being cast from sprite frame to direction to size_t
Co-authored-by: Anders Jenbo <anders@jenbo.dk>
Fix alignment of WalkSettings array
5 years ago
Anders Jenbo
cd79f0204d
🚨 Fix compiler warnings
5 years ago
Anders Jenbo
2d47c12515
Fix charpanel always showing player 0 stats
5 years ago
Juliano Leal Goncalves
32e22a16b3
♻️ Leverage conversion constructor for 'Direction' to 'Displacement'
...
This makes code more consistent overall as we use the same pattern for dealing with Sizes.
5 years ago
Juliano Leal Goncalves
a91074d470
🚚 Rename 'LightStruct' struct to 'Light'
5 years ago
Juliano Leal Goncalves
0d3d4c14f6
🚚 Rename 'Dead' concept to 'Corpse' everywhere ( #2808 )
5 years ago
Juliano Leal Goncalves
940a120bf9
♻️ Replace 'ViewX' and 'ViewY' globals with single 'ViewPosition'
5 years ago
Juliano Leal Goncalves
d225202c34
🚚 Rename 'MonsterClass' members for consistency
5 years ago
Juliano Leal Goncalves
21b481bb46
♻️ Convert 'MonsterClass' enum to enum class
5 years ago
Juliano Leal Goncalves
ef74b6f92d
🚚 Rename 'ObjectStruct' to 'Object'
5 years ago
Juliano Leal Goncalves
20db8d1a11
🚚 Rename 'MonsterStruct' to 'Monster'
5 years ago