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
Juliano Leal Goncalves
6e1d05187e
🚚 Rename 'MissileStruct' to 'Missile'
5 years ago
Juliano Leal Goncalves
20db8d1a11
🚚 Rename 'MonsterStruct' to 'Monster'
5 years ago
Juliano Leal Goncalves
fe95e36d90
🎨 Leverage 'IsAnyOf' on monster mode checks
5 years ago
Juliano Leal Goncalves
1cd62bbc64
🚚 Rename 'MonsterMode' members for semantic and consistency
5 years ago
Juliano Leal Goncalves
69a7cb66d4
♻️ Convert 'MON_MODE' enum to 'MonsterMode' enum class
5 years ago
Juliano Leal Goncalves
01823e1324
♻️ Replace 'cursmx' and 'cursmy' globals with single 'cursPosition'
5 years ago
Anders Jenbo
4044fadeb5
Clean up some players references
5 years ago
Anders Jenbo
cb2831aae6
Fix possible teleport positiosn
...
There should only be 36 possible as 4 3x3 areas direciton N/E/S/W
5 years ago
qndel
770f3a2f20
unify ranged and melee pierce
5 years ago
Anders Jenbo
3d8d5e32e0
Clean up AddRune ( #2732 )
5 years ago
Anders Jenbo
3b019fbc13
Clean up points in missiles.cpp
5 years ago
Anders Jenbo
866bc56008
Clean up remaning usages of Missiles[]
5 years ago
Anders Jenbo
bf706f2fbb
🐛 Fix Phasing not working in Lazarus' camber
...
Previously an improper check was being done to see if the player was
located on the 3 teleporting pads in the level. Even if fixng this the
spell would not work correctly if the layer was standing on the pads
when casting the spell.
Simply use TARGET_BOTH to indicate that it should not be random and send
the player to the given destination
5 years ago
Anders Jenbo
4fd2e2dc97
🐛 Fix Phasing teleporting to invalid locations
...
Phasing could end up attempting to teleport to hunreds of random
location and still fail to find a valid target and send the player in to
a wall or outside the map.
This is fixed by first finding all valid locations within range and then
picking one of them at random.
Valid targets is a 13x13 area around the player minus the inner 7x7
In total there can be no more then 120 valid tiles and on average there
should be 75 avalible.
5 years ago
BC Ko
147f68c15f
missile generic variable documentation
5 years ago
BC Ko
536121f038
rename _miVar# to var#
5 years ago
BC Ko
4df798808e
2435 refactor global variable Items part 2 ( #2673 )
5 years ago
Anders Jenbo
d125b591eb
Remove dead code: ClearMissileSpot
...
This used to be called by the manashiled code
5 years ago
Anders Jenbo
652573a8ce
Re merge FireballUpdate and MI_Fireball
5 years ago
BC Ko
373adcf65b
modify AddMissile() parameters and remove Missiles[] in MissToMonst()
5 years ago