Juliano Leal Goncalves
919093406e
♻️ Leverage 'Damage' for '_pIF[Min|Max]Dam' 'Player' fields
5 years ago
Juliano Leal Goncalves
3a5dd9e92f
🐛 Ensure correct fire arrow damage range on player hits
...
Fixes a off-by-one mistake in fire arrow damage randomization logic that was preventing the final damage from ever being the maximum value of the range.
For example, a 1-10 fire damage item would only ever do between 1 and 9 damage.
5 years ago
Juliano Leal Goncalves
fd853a00ad
♻️ Leverage 'Damage' for '_pI[Min|Max]Dam' 'Player' fields
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
Juliano Leal Goncalves
1cd62bbc64
🚚 Rename 'MonsterMode' members for semantic and consistency
5 years ago
Juliano Leal Goncalves
69a7cb66d4
♻️ Convert 'MON_MODE' enum to 'MonsterMode' enum class
5 years ago
qndel
a737d72dd9
Dynamic char panel
5 years ago
Juliano Leal Goncalves
bb2dfdfb73
🚚 Rename 'ItemStruct' to 'Item'
5 years ago
Juliano Leal Goncalves
01823e1324
♻️ Replace 'cursmx' and 'cursmy' globals with single 'cursPosition'
5 years ago
Juliano Leal Goncalves
bbf529c65a
🚚 Rename 'PlayerStruct' to 'Player'
5 years ago
Anders Jenbo
4044fadeb5
Clean up some players references
5 years ago
qndel
a9fbf91524
CalcStatDiff cleanup
5 years ago
qndel
770f3a2f20
unify ranged and melee pierce
5 years ago
BC Ko
536121f038
rename _miVar# to var#
5 years ago
BC Ko
4df798808e
2435 refactor global variable Items part 2 ( #2673 )
5 years ago
Anders Jenbo
d7c6d8b189
Use proper Direction type for AddMissile midir
5 years ago
qndel
3d92b6eea5
Rewrite manashield into not using a missile
5 years ago
qndel
d76158ca03
reflect without missile! ( #2659 )
5 years ago
Anders Jenbo
d4bd409472
Deduplicate manashild/reflect code
5 years ago
BC Ko
abc00ad107
auto &missile
5 years ago
BC Ko
1a6562e16d
Merge pull request #2648 from bcko/2435_refactor_Missiles_3
5 years ago
qndel
f6bb118cd5
remove reflect on new game ( #2649 )
5 years ago
qndel
7ba878fd4d
fix reflect on loading
5 years ago
Anders Jenbo
4c6a5bab56
Clean up god mode
5 years ago
Anders Jenbo
c5e0966190
Clean up golem code
5 years ago
qndel
045921813b
some useless code removal
5 years ago
ephphatha
8f2e94ae4d
Use unsigned types for player experience and related values
5 years ago
Andrew James
f10005e0b6
use std::clamp and std::min for multiplayer experience gain caps
5 years ago
ephphatha
a561cb18de
Explicitly check values are in expected range instead of casting to unsigned for <0
5 years ago
vladtepesch
0e56e52c75
fixes casting level 0 spell says "not enough mana" ( #2568 )
5 years ago