Anders Jenbo
64e0f65f38
Fix MonsterMHit check for petrified monsters
4 years ago
Andrew James
8104432db4
Use object reference (and self-id lookup) for BreakBarrel
4 years ago
Anders Jenbo
56170b3372
Clean up id normalization
4 years ago
ephphatha
07843bd007
Separate search and spawn logic for AddRune
4 years ago
ephphatha
93425deb92
Separate search and effect logic for berserk
4 years ago
ephphatha
a79d1fa9f7
Separate search and effect logic for mana trap
4 years ago
ephphatha
aedb1c5526
Separate search and spawn logic for teleport
4 years ago
ephphatha
9201a27b99
Separate search and spawn logic for town portal
4 years ago
ephphatha
ef02982465
Tidy up guardian spawn routine
4 years ago
ephphatha
a0a8ce93a7
Separate logic for targeting a monster and applying Petrify
4 years ago
ephphatha
9e133afd8a
Tidy up golem spawn routine
4 years ago
ephphatha
958602d600
Use FindClosestValidPosition for casting firewall
4 years ago
ephphatha
b5bda7dbeb
Use FindClosestValidPosition when placing Hork Spawn
4 years ago
ephphatha
db8b8c245e
Use FindClosestValidPosition for FindClosestMonster
4 years ago
Andrew James
796e2813cf
Use scoped enums for DungeonFlags/BFLAG ( #3135 )
4 years ago
qndel
f9838d849d
dont allow casting berserk on berserked monster
4 years ago
qndel
bf1df33aa8
dont allow casting berserk on berserked monster
4 years ago
Andrew James
021c7a652f
Add helpers for checking object type ( #3357 )
...
* Add helper to test if an object is a trap source
* Add helper to test if an object is a barrel
* Add helper to test if an object is a crucifix
* Add helpers to check if an object is a chest (and statuses)
* Add helpers to check if an object is a (basic) shrine
4 years ago
staphen
c698e06596
Rotate arrows in the appropriate direction when blocking
4 years ago
qndel
1bb5d6a0fa
fix multiplayer hit sounds
4 years ago
qndel
c1108a2ee8
fix acid missiles ( #3224 )
4 years ago
Thomas Christlieb
5cc56467da
rename variable in old code
4 years ago
qndel
acf4ef880d
fix lightning rune damage
5 years ago
qndel
c39c6ce7bb
make lightning trap hit multiple times again
5 years ago
Anders Jenbo
2708b16c05
Validate CMD_SYNCDATA ( #2968 )
5 years ago
Alex
6df826eb02
Fix compiler warnings
5 years ago
qndel
0569dba547
fix typos
5 years ago
obligaron
9964bd9e49
Fix existing missiles check for Guardian/Townportal/Rune
5 years ago
Siddharth singh chouhan
bcb332b7b0
Move documentation from implementations to declarations
5 years ago
Juliano Leal Goncalves
379a27b64a
♻️ Convert 'ItemType' enum to enum class
...
🎨 Rename 'ItemType' elements to enum class standards
5 years ago
ephphatha
9ef77cb428
Use scoped enum for Direction16.
...
Allows renaming the members to share names with Direction members when
representing the same conceptual direction.
5 years ago
ephphatha
9c9426821d
Update MoveMissilePos to use Direction and Displacement types.
...
Remove explicit cases falling through to default case in MoveMissilePos
5 years ago
ephphatha
b12de6fe12
Use scoped enum for Direction
...
Identified and removed an instance of Direction being used as an argument for a bool parameter
Removed a single-use temporary variable being cast from sprite frame to direction to size_t
Co-authored-by: Anders Jenbo <anders@jenbo.dk>
Fix alignment of WalkSettings array
5 years ago
obligaron
836bb92e8e
MoveMissileAndCheckMissileCol: Call CheckMissileCol only once for a tile and target
5 years ago
obligaron
730ceee3d2
Make MoveMissileAndCheckMissileCol check skipped tiles
5 years ago
obligaron
8da46627a7
Introduce MoveMissileAndCheckMissileCol
5 years ago
obligaron
1b3381ce8e
Move CrawlNum to CrawlTable and make it extern visible
5 years ago
qndel
a46d2c948c
fix golem spawning on top of player
5 years ago
ephphatha
6fa3018f05
Move Init/FreeMissileGFX functions alongside MissileSpriteData array definition
...
Also combined the two free missile graphics functions as they were always called together (just slightly out of order previously).
5 years ago
ephphatha
851fb87e24
Remove mi argument from DeleteMissile
...
This value is always the current value of ActiveMissiles[i], while the caller has retrieved the index for its own use it's easier to track what the function does by just passing i.
5 years ago
Anders Jenbo
2ea317c178
Clean up missile code
5 years ago
Anders Jenbo
ddddb44587
🐛 Fix search spell affecting all players
5 years ago
Anders Jenbo
e848bf77df
🐛 Fix teleport not working in all locations
...
- Player cannot TP to current location
- Cannot teleport to any object location (including doors)
- Can teleport to void locations
- Cannot teleport to dead monsters
5 years ago
Juliano Leal Goncalves
d82b3b542f
🚚 Rename 'MissileDataStruct' struct to 'MissileData' ( #2803 )
...
* 🚚 Rename 'MissileDataStruct' struct to 'MissileData'
* 🚚 Rename 'MissileData' global array to 'MissilesData'
5 years ago
Juliano Leal Goncalves
0d3d4c14f6
🚚 Rename 'Dead' concept to 'Corpse' everywhere ( #2808 )
5 years ago
Juliano Leal Goncalves
940a120bf9
♻️ Replace 'ViewX' and 'ViewY' globals with single 'ViewPosition'
5 years ago
Juliano Leal Goncalves
d225202c34
🚚 Rename 'MonsterClass' members for consistency
5 years ago
Juliano Leal Goncalves
21b481bb46
♻️ Convert 'MonsterClass' enum to enum class
5 years ago
staphen
e85101eb31
Fix NULL Cel Buffer error when blocking missiles
5 years ago
qndel
2e6f98ac2a
search cleanup
5 years ago