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
obligaron
82cea78def
Apply clang-format
5 years ago
BC Ko
5951e2abb2
cleanup manual value clamping: player.cpp ( #2572 )
5 years ago
qndel
0a70a8cece
unify block formula
5 years ago
Aaron Sun
3ee90ca629
Add options for sub-panel alignment
5 years ago
4aron5un
4c8210df21
Center the sub-panels (Quest, Character, Spell and Inventory) ( #2498 )
5 years ago
qndel
9056092cf8
more clamps ( #2496 )
5 years ago
qndel
169f980038
ranged/magic formulas
5 years ago
qndel
bd5e30db52
replace armor formula
5 years ago
qndel
f8dc7bd3e3
clamp melee hit chance ( #2491 )
5 years ago
obligaron
fe034ce709
Towncast: Fix character changes direction for casting
5 years ago
Anders Jenbo
ab8afa7cd7
Fix edge cases in mouse action tracking code ( #2452 )
...
Fixes #2431
Also:
- Track spell targets
- Merge repeat walk in to the new repeat action code
- Avoid time based repeats (use action frame instead)
5 years ago
Anders Jenbo
8ba3bbb6a4
Have PosOkPlayer take PlayerStruct as input ( #2430 )
5 years ago
Anders Jenbo
f0a7a5c989
🎨 Apply code style
5 years ago
Anders Jenbo
069249f318
🚚 Move local function to anonymous namespace i-p
5 years ago
Anders Jenbo
6227c0a012
Cancel targeted attack on dead targets
...
Fixes #962
5 years ago
Anders Jenbo
899d1886c1
🐛 Fix multi target attack not hitting left side targets
5 years ago
Anders Jenbo
f4897c3139
Clean up MouseAction code
5 years ago
Anders Jenbo
0889780923
Remove more usage of miniwin types
5 years ago
obligaron
70db8456ba
Remove _pwtype and replace it with UsesRangedWeapon
5 years ago
obligaron
d1d61fcd0f
Convert anim_weapon_id and anim_armor_id to enum class
5 years ago
ephphatha
a8ed1998d1
Use Point in path_ functions that reference position
...
In cases like path_get_h_cost this allows simplifying logic where Point provides functions for the intended behaviour in a much simpler to understand package.
This also makes it clearer which functions are const/don't modify the node and which potentially have side effects.
5 years ago