qndel
0a70a8cece
unify block formula
2021-08-07 16:34:29 +02:00
qndel
9056092cf8
more clamps ( #2496 )
2021-08-05 02:53:24 +02:00
qndel
169f980038
ranged/magic formulas
2021-08-04 23:55:44 +02:00
qndel
bd5e30db52
replace armor formula
2021-08-04 23:55:44 +02:00
Anders Jenbo
4451a519eb
Fix two OOBs in missiles.cpp
2021-07-29 21:39:15 +02:00
Vladimir Olteanu
629bd69fab
Remove duplicate code in AddFooRune
2021-07-21 16:16:11 +02:00
Anders Jenbo
9c4e34f988
Player by reference
2021-07-20 01:35:56 +02:00
Anders Jenbo
8ba3bbb6a4
Have PosOkPlayer take PlayerStruct as input ( #2430 )
2021-07-20 00:30:35 +01:00
Anders Jenbo
0889780923
Remove more usage of miniwin types
2021-07-18 02:11:58 +02:00
Anders Jenbo
78124fb389
Add GolemHoldingCell
2021-07-17 05:01:56 +02:00
Anders Jenbo
bef214d0ca
Clean up monster ide handeling in CheckMissileCol
2021-07-17 05:01:56 +02:00
Anders Jenbo
9c0760e780
♻️ Clean up various checks in monster logic
2021-07-17 05:01:56 +02:00
Anders Jenbo
9264ad4b89
Use IsTileNotSolid() in place of !nSolidTable[dPiece[][]]
2021-07-17 03:57:26 +02:00
Anders Jenbo
2d4da488f0
Split path test functions
2021-07-17 03:57:26 +02:00
ephphatha
488ee03f53
Use bound functions for LineClear test function pointer
2021-07-16 20:19:39 +02:00
Anders Jenbo
4e82c70fcb
Make MonsterIsTileAccessible aware if monsters can open doors or not
2021-07-16 20:10:26 +02:00
obligaron
5ed79c38ef
Introduce MissilePosition.StopMissile
2021-07-16 02:15:36 +02:00
Anders Jenbo
e82d103465
🐛 Fix bounds checks in monster code
2021-07-15 19:48:55 +02:00
qndel
efaeffcab8
fix guardian ( #2383 )
2021-07-15 18:03:26 +02:00
Anders Jenbo
77b72da276
♻️ Use monster by reference when possible
2021-07-14 20:22:35 -07:00
Anders Jenbo
40373bd4cf
Clean up PutMissile
2021-07-12 19:41:55 -07:00
Anders Jenbo
13eb1d9bb4
Clean up GuardianTryFireAt
2021-07-12 19:41:55 -07:00
Anders Jenbo
ef6275caac
Clean up private function names
2021-07-12 17:59:22 -07:00
Anders Jenbo
4bf4e42230
Move local symbols to anonymous namespace
2021-07-12 17:59:22 -07:00
obligaron
3e57d0d69b
Introduce MonsterGraphic enum class
2021-07-12 07:40:38 -07:00
obligaron
5f7a2803fc
Introduce CMonster::GetAnimData
2021-07-12 07:40:38 -07:00
Anders Jenbo
8ebef6a062
Clean up ProcessMissiles
2021-07-11 16:11:32 -07:00
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 😓 )
2021-07-09 18:00:15 +02:00
ephphatha
949cb713d3
Add explicit casts to conversions from double/float to int
2021-07-08 07:53:40 -07:00
Anders Jenbo
467b74dc06
Rename object globals
2021-07-08 02:01:14 -07:00
Anders Jenbo
9ae908f947
Rename missile globals
2021-07-08 02:01:14 -07:00
Anders Jenbo
96bf75b502
Rename player globals
2021-07-08 02:01:14 -07:00
Anders Jenbo
dce78dde62
Rename lighting globals
2021-07-08 02:01:14 -07:00
Anders Jenbo
07ad083fda
Rename monster globals
2021-07-08 02:01:14 -07:00
obligaron
be53349c2d
Decouple missile movement from game logic ( #2322 )
2021-07-08 10:19:52 +02:00
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*
2021-07-05 08:52:05 -07:00
obligaron
32b980ccb7
Rename GetVileMissPos -> UpdateVileMissPos
2021-07-05 07:56:56 -07:00
obligaron
d974826a07
Rename GetMissileVel -> UpdateMissileVel
2021-07-05 07:56:56 -07:00
obligaron
16fd46c6a2
Rename GetMissilePos -> UpdateMissilePos
2021-07-05 07:56:56 -07:00
obligaron
4db49ce6f9
Fix MI_Rhino don't update dMonster correctly
2021-07-05 05:55:08 -07:00
Anders Jenbo
d877287636
🐛 Correct missile ring offset
...
See https://github.com/diasurgical/devilution/pull/2237
2021-07-04 12:57:22 -07:00
Anders Jenbo
6690af350e
Clean up missiles.cpp
2021-07-04 12:57:22 -07:00
Anders Jenbo
a7c7fa0030
Fully apply clang-tidy/format to all files
2021-07-03 16:41:43 -07:00
Anders Jenbo
a350fb0b15
Clang-tidy: FunctionCase part 1
2021-07-03 03:45:33 +02:00
Anders Jenbo
b71b0149a3
Clang-tidy: ConstexprVariableCase
2021-07-03 03:09:43 +02:00
Anders Jenbo
7e737cfa96
Merge remote-tracking branch 'refs/remotes/devilution/master'
2021-07-03 01:44:45 +02:00
Anders Jenbo
58cddd6e5e
Clean up missiles var init
2021-07-02 05:38:48 -07:00
Juliano Leal Goncalves
cbb84199c2
♻️ Replace Point addition with 'Point + Displacement'
2021-06-28 20:37:44 -07:00
Anders Jenbo
8e07ef8fe5
Clang-tidy: misc-unused-parameters
2021-06-27 17:34:32 +02:00
ephphatha
357f6f1dc3
Move RNG functions to their own header/source files
2021-06-27 03:09:41 -07:00