Anders Jenbo
0889780923
Remove more usage of miniwin types
5 years ago
Anders Jenbo
753b5698f7
Remove unconventional assert() implementations
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
Anders Jenbo
b591824182
💚 Fix NOSOUND build
5 years ago
Anders Jenbo
78124fb389
Add GolemHoldingCell
5 years ago
Anders Jenbo
4d59c248ea
Remove unused return from SpawnSkeleton
5 years ago
Anders Jenbo
9c0760e780
♻️ Clean up various checks in monster logic
5 years ago
Anders Jenbo
2d4da488f0
Split path test functions
5 years ago
ephphatha
190025e79f
Use bound parameters for pathfinding functions operating on entities
5 years ago
ephphatha
488ee03f53
Use bound functions for LineClear test function pointer
5 years ago
Anders Jenbo
4e82c70fcb
Make MonsterIsTileAccessible aware if monsters can open doors or not
5 years ago
FluffyQuack
ba60907853
Hold mouse button to keep attacking (Diablo 2-style) ( #2349 )
5 years ago
Anders Jenbo
e82d103465
🐛 Fix bounds checks in monster code
5 years ago
Anders Jenbo
a089692850
💄 Introduce MonsterRelation enum
5 years ago
Anders Jenbo
77b72da276
♻️ Use monster by reference when possible
5 years ago
FluffyQuack
c4a96bc829
👑 Fix to bug that made spawned monsters overwrite alive ones (cause was monsters not being properly deleted)
5 years ago
Anders Jenbo
a709790c82
Document a few functions
5 years ago
Anders Jenbo
43aec8cecc
Clean up AiDelay
5 years ago
Anders Jenbo
684d6943aa
Merge MegaAi and MAI_RR2
5 years ago
Anders Jenbo
c30ff97885
Use Point in UpdateEnemy
5 years ago
Anders Jenbo
ef6275caac
Clean up private function names
5 years ago
Anders Jenbo
4bf4e42230
Move local symbols to anonymous namespace
5 years ago
Anders Jenbo
5d99cb4925
Fix MAI_Warlord direction
5 years ago
obligaron
3e57d0d69b
Introduce MonsterGraphic enum class
5 years ago
obligaron
5f7a2803fc
Introduce CMonster::GetAnimData
5 years ago
obligaron
481fc04235
InitMonster: Get AnimData only once
5 years ago
obligaron
1fcbad0810
MAI_Ranged: Use CheckStandAnimationIsLoaded instead of directly changing animation data
5 years ago
obligaron
e5bf44a75f
M_DoWalk: Simplify check if we reached new tile
5 years ago
obligaron
dc2d5e2b04
Remove unnecessary assignments to _mdir
5 years ago
obligaron
a94da6b4a3
NewMonsterAnim gets monster references and monster graphic instead of index, and AnimStruct Pointer
5 years ago
obligaron
02d2754a68
MAI Garbud/Zhar/SnotSpill/Lazurus/Lachdanan/Warlord
...
Change _mdir in CheckStandAnimationIsLoaded (and only in stand).
5 years ago
obligaron
95937021fe
Fallen fear: Use _mgoalvar2 for new direction instead of _mdir
5 years ago
obligaron
508132e014
ADL: Handle skipped Frames for Diablo Got-Hit Animation
5 years ago
obligaron
e2ba79d3d1
Introduce StartMonsterGotHit
5 years ago
obligaron
b4966f22e1
Move NewMonsterAnim to anonymous namespace
5 years ago
Anders Jenbo
65d7b3c1eb
Use AdvanceRndSeed() when changing RNG with out use
5 years ago
Anders Jenbo
903d4bd2e1
Scope all for loops
...
This caused 7 of the loops to be rewriteen using range by clang-tidy
5 years ago
Anders Jenbo
9ebdb6db69
General clean up
5 years ago
Anders Jenbo
467b74dc06
Rename object globals
5 years ago
Anders Jenbo
9ae908f947
Rename missile globals
5 years ago
Anders Jenbo
9b8bf92575
Rename quest globals
5 years ago
Anders Jenbo
96bf75b502
Rename player globals
5 years ago
Anders Jenbo
dce78dde62
Rename lighting globals
5 years ago
Anders Jenbo
07ad083fda
Rename monster globals
5 years ago
Anders Jenbo
56d3b5d710
clang-tidy/Android Stuidio cleanups 5
5 years ago
ephphatha
51d05a3523
Reorder monster damage calculations to avoid warnings
...
This was giving type conversion warnings for the forced int > double > int conversion. The int + int operation in the middle was also flagged as it gets upcast during the multiplication (despite the values always being well within the range of an int) so using long constants there to avoid it.
5 years ago
obligaron
e1e92ad777
Fix PlaceUniques calculates wrong monster type
5 years ago
Anders Jenbo
bc0d1f7ac0
clang-tidy/Android Stuidio cleanups 3
5 years ago
Anders Jenbo
bc59218d0d
More clang-tidy/Android Studio cleanups
5 years ago
Anders Jenbo
a7c7fa0030
Fully apply clang-tidy/format to all files
5 years ago