Anders Jenbo
78124fb389
Add GolemHoldingCell
5 years ago
Anders Jenbo
bef214d0ca
Clean up monster ide handeling in CheckMissileCol
5 years ago
Anders Jenbo
9c0760e780
♻️ Clean up various checks in monster logic
5 years ago
Anders Jenbo
9264ad4b89
Use IsTileNotSolid() in place of !nSolidTable[dPiece[][]]
5 years ago
Anders Jenbo
2d4da488f0
Split path test functions
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
obligaron
5ed79c38ef
Introduce MissilePosition.StopMissile
5 years ago
Anders Jenbo
e82d103465
🐛 Fix bounds checks in monster code
5 years ago
qndel
efaeffcab8
fix guardian ( #2383 )
5 years ago
Anders Jenbo
77b72da276
♻️ Use monster by reference when possible
5 years ago
Anders Jenbo
40373bd4cf
Clean up PutMissile
5 years ago
Anders Jenbo
13eb1d9bb4
Clean up GuardianTryFireAt
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
obligaron
3e57d0d69b
Introduce MonsterGraphic enum class
5 years ago
obligaron
5f7a2803fc
Introduce CMonster::GetAnimData
5 years ago
Anders Jenbo
8ebef6a062
Clean up ProcessMissiles
5 years ago
ephphatha
b680e3fef1
Align end comment markers for doxygen comments
...
Including a bunch from previous PRs (since I was responsible for the broken formatting for most 😓 )
5 years ago
ephphatha
949cb713d3
Add explicit casts to conversions from double/float to int
5 years ago
Anders Jenbo
467b74dc06
Rename object globals
5 years ago
Anders Jenbo
9ae908f947
Rename missile 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
obligaron
be53349c2d
Decouple missile movement from game logic ( #2322 )
5 years ago
ephphatha
ab58d3d1ee
Reorder AddBeserk damage range adjustment calculations
...
This avoids forcing floating point conversions, the operation can safely be expressed as integral operations given the range of GenerateRnd and the types chosen for MonsterStruct::m*Damage*
5 years ago
obligaron
32b980ccb7
Rename GetVileMissPos -> UpdateVileMissPos
5 years ago
obligaron
d974826a07
Rename GetMissileVel -> UpdateMissileVel
5 years ago
obligaron
16fd46c6a2
Rename GetMissilePos -> UpdateMissilePos
5 years ago
obligaron
4db49ce6f9
Fix MI_Rhino don't update dMonster correctly
5 years ago
Anders Jenbo
d877287636
🐛 Correct missile ring offset
...
See https://github.com/diasurgical/devilution/pull/2237
5 years ago
Anders Jenbo
6690af350e
Clean up missiles.cpp
5 years ago
Anders Jenbo
a7c7fa0030
Fully apply clang-tidy/format to all files
5 years ago
Anders Jenbo
a350fb0b15
Clang-tidy: FunctionCase part 1
5 years ago
Anders Jenbo
b71b0149a3
Clang-tidy: ConstexprVariableCase
5 years ago
Anders Jenbo
58cddd6e5e
Clean up missiles var init
5 years ago
Juliano Leal Goncalves
cbb84199c2
♻️ Replace Point addition with 'Point + Displacement'
5 years ago
Anders Jenbo
8e07ef8fe5
Clang-tidy: misc-unused-parameters
5 years ago
ephphatha
357f6f1dc3
Move RNG functions to their own header/source files
5 years ago
Anders Jenbo
0a00d1d7ba
♻️ Use a switch for AddClassHealingBonus
5 years ago
Anders Jenbo
8a4d38dd74
Stabalize clang-tidy runs
5 years ago
Anders Jenbo
ec8d7bebe2
Clang-tidy: modernize-use-auto
5 years ago
Anders Jenbo
8f3266244a
Clang-tidy: readability-else-after-return
5 years ago
Anders Jenbo
de4ced7e4f
Clang-tidy: readability-qualified-auto
5 years ago
Anders Jenbo
f4f8f22699
Clang-tidy: readability-redundant-control-flow
5 years ago
ephphatha
f4f6a8a51e
Refactor PlaySfxLoc to take a Point instead of x/y params
...
Because of the heavy usage of this function in objects.cpp and the mixed use of aliases and direct references to the active object in Operate*Door functions I've done some refactoring of those areas beyond what is strictly necessary. Hopefully this makes sense and is reasonable to include in this change.
5 years ago
Anders Jenbo
22b632f04a
♻️ Clean up implicit bool conversions
5 years ago
obligaron
fb23521288
Introduce AnimationInfo.IsPetrified to handle Stone Curse Spell
5 years ago
obligaron
317a6ee82c
Introduce MonsterStruct::Petrify
5 years ago