Anders Jenbo
946ff5b0fa
♻️ Performe static casts when load save game data
5 years ago
Anders Jenbo
61d15e23db
🎨 Apply direction enum to monsters and relations
...
Missiles _mimfnum is being used for a lot more then just directions and
can also be a 16 degree direction so can't apply enum verbs and
restricitons to it in most cases. This in turns also affects SetMissDir
and some other functions that have to stay int.
5 years ago
staphen
4faf09c2df
Consolidate logic for Mana Shield and player damage.
5 years ago
Gleb Mazovetskiy
95946e3a7c
🧹 Cleanup unused variables ( #1584 )
...
Fixes `unused-variable` and `unused-but-set-variable` compiler warnings.
5 years ago
Anders Jenbo
997c1dba55
🚚 Split up all.h in to proper header relations
5 years ago
Anders Jenbo
3e61cb8269
🐛 [hellfire] Sparkling Shrine deals a random amount of damage
...
If cast by traps flash would look in memory a bit before the monster
array for what value to use as damage, no one knows what might have been
there waiting so could deal anything form -254 to 254 damage.
Fixes #1500
5 years ago
Anders Jenbo
007a3256bf
🐛 [hellfire] Sparkling Shrine deals a random amount of damage
...
If cast by traps flash would look in memory a bit before the monster
array for what value to use as damage, no one knows what might have been
there waiting so could deal anything form -254 to 254 damage.
Fixes #1500
5 years ago
thebigMuh
f0080a6f36
Fix Search/Rage/Lightningwall ignoring clvl of player 0 ( #1501 )
5 years ago
thebigMuh
120383d232
Fix Search/Rage/Lightningwall ignoring clvl of player 0 ( #1501 )
5 years ago
Juliano Leal Goncalves
8cf972e843
♻️ Move 'HeroClass::ClassCount' to external tracking template
...
This eliminates the problem where the compiler complains we are not handling all enumeration values by moving the "hack" counting member into somewhere else external to the enum.
5 years ago
Juliano Leal Goncalves
28ad9d43c5
🎨 Rename 'plr_class' enum to 'HeroClass'
...
Members were renamed as well for readability.
5 years ago
Juliano Leal Goncalves
7d95bfed39
♻️ Convert 'plr_class' to a scoped enumeration
5 years ago
Anders Jenbo
ba6b031fa1
✅ Enable all remaning assertions ( #1453 )
5 years ago
Anders Jenbo
9d037bafff
🚨 Fix remaning clang warnings
5 years ago
Anders Jenbo
2732aea1b2
♻️ Use GameInfo instead of individual globals
5 years ago
Anders Jenbo
61244c4d93
♻️ Rearange and apply more enums
5 years ago
Anders Jenbo
4f8b5e2f5f
🎨 Correct style of true comparisons
5 years ago
Anders Jenbo
36ebd857ad
🎨 Correct style of false comparisons
5 years ago
Anders Jenbo
20186e0370
🎨 Replace TRUE/FALSE with true/false
...
fix
Fix
fix
5 years ago
Anders Jenbo
93d42b62b8
♻️ Change BOOL to bool
5 years ago
Anders Jenbo
4ee84aea1a
♻️ Change BOOLEAN to bool
...
fixup BOOLEAN
5 years ago
Anders Jenbo
6fcca51ec6
🐛 Fix loading missiles
5 years ago
Anders Jenbo
779e6cf950
♻️ Apply more enums
5 years ago
Anders Jenbo
af96de4038
♻️ Move a large part of enums to there respective headers
5 years ago
Gleb Mazovetskiy
14a21010a4
Simplify LoadMissileGfx
...
Animation frames are always loaded and free together, there is no need
to check each one.
5 years ago
Anders Jenbo
bfb3c11c2b
🎨 Change namespace to devilution
5 years ago
Anders Jenbo
630e507f63
🚚 Apply namespace
5 years ago
pionere
79ed3c897b
[diablo] 🐛 Better direction calculation
...
Rinos would have a slight inclination to move in the 4 main cardinal
directions.
Also missiles should more ofthen show the correct angle compared to
movment.
5 years ago
Anders Jenbo
3a660f6f6c
♻️ Align MI_LightningWallC with MI_FirewallC
5 years ago
Anders Jenbo
c899cabf98
🐛 Block direction in PlayerMHit
5 years ago
Anders Jenbo
17803d5923
♻️ Apply proper types to PlayerStruct
5 years ago
Anders Jenbo
8b8caf5a7e
🐛 Fix quests not activating on Windows
...
Compare _uniqtype instead mName
Fixes #1152
5 years ago
Anders Jenbo
def2253386
♻️ Move monster.h related structs and enums and apply propper types
5 years ago
Anders Jenbo
05f1fc7ce1
[hellfire] 🐛 Correct spell level calculations for FlashBack, search and rage
5 years ago
Anders Jenbo
dd73ff2cf0
🚩 Add option for disabeling frindly fire ( #1104 )
5 years ago
Anders Jenbo
7cf40d3c7c
Clean up missile function names
5 years ago
Anders Jenbo
61729c1eb6
Clean up missile types
5 years ago
Anders Jenbo
c690d433af
Add damage calculation for Hellfire spells
5 years ago
pionere
f5c1079d6f
eliminate unused code
5 years ago
Anders Jenbo
60d3e9ceb1
Clean up rendering
5 years ago
qndel
ab9911064f
unify checks for single and multiplayer
5 years ago
Anders Jenbo
0340aebdac
[Diablo] Correct flash damage in the N, NE and E direction
5 years ago
Anders Jenbo
9c0bc202c8
Fix additional wrong checks for monsters lights
5 years ago
qndel
6e096143f0
Add no-light define and fix usage
5 years ago
Anders Jenbo
bdf5c0d0cb
Unify the last of missiles.cpp
5 years ago
Anders Jenbo
8e772c4a71
Unify firewall logic
5 years ago
Anders Jenbo
a1281d8b54
[hellfire] Fix bugs related to using the wrong player index
...
- Firewall damage was incorrect for player 0 (host or single player)
- Town Shrine would always cast TP from the host instead of the user
- Oily Shrine and Sparkling Shrine would cast there traps as player 0
- The farmer would always think he was talking to the local player
5 years ago
Anders Jenbo
9894bffc95
Unify another chunk of Hellfire code
5 years ago
Anders Jenbo
290098fd63
Unify some more missile code
5 years ago
Anders Jenbo
00e3ff08ae
Unify majorty of monster.cpp
5 years ago