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
BC Ko
ee96690410
change function parameter
...
pass missile to mProc()
5 years ago
BC Ko
6a0b99817c
remove Missiles[] in FireballUpdate()
5 years ago
BC Ko
4834905eac
remove Missiles[] in SpawnGolem()
5 years ago
Anders Jenbo
d66d56cbbd
Deduplicate ligntning missiles
5 years ago
Anders Jenbo
ff23277cfa
Use FindParent() in MI_Firebolt
5 years ago
Anders Jenbo
9a6820493f
No missile golem
...
Simplify spawning golem, the golem will now spawn in the same tick
instead of next tick
5 years ago
Anders Jenbo
d7c6d8b189
Use proper Direction type for AddMissile midir
5 years ago
Anders Jenbo
611f759dbe
Clean up AddMissile
5 years ago
Anders Jenbo
c15f4d1fa9
Remove abuse of midir for unrelated values
...
- Lightnings cast by familiars have a short range, this was communicated
by setting midir to -1. Solved by looking at the type of the owner
- Lightning and Inferno sync position with the parent missile. Solved by
copying the sync from the guardian spell
5 years ago
qndel
3d92b6eea5
Rewrite manashield into not using a missile
5 years ago
Anders Jenbo
966cae8b82
Remove redundant zeroring of variables
5 years ago
Anders Jenbo
08a29fe3a2
Make UpdateMissileVelocity use missile current position as src
5 years ago
qndel
7566a5bedf
fix missiles without dmg ( #2685 )
5 years ago
Anders Jenbo
c5bf9d7abc
Remove redundant zeroing of missile properties
5 years ago
Anders Jenbo
aae1f7f773
Remove dead code
...
Now that Reflection does not leave behind a missile, this code does
nothing
5 years ago
Anders Jenbo
7e5cbd573a
Move manashield and reflect logic out of AddMissile()
5 years ago
Anders Jenbo
fda801e65d
Clean up AddApoca
5 years ago
Anders Jenbo
6ee3eb38ba
Remove needls use of _miVar1 in rage spell
5 years ago
Anders Jenbo
aa2d645db1
[hellfire] bug: correct firering damage and xp
...
- If cast by player damage would be boosted by dungeon level
- If cast by object damage would be boosted by the secound player level
- XP would go to the first player if cast by trap
- XP would go to the secound player if cast by players
5 years ago
Anders Jenbo
96b19ca8d5
Set _micaster type to mienemy_type
...
Rino never made use of the player id, so no reason to abuse _micaster
5 years ago
Anders Jenbo
df636c0afc
Remove DIR_OMNI
5 years ago
Anders Jenbo
bea8cc9d87
Reduce paremters used in add missile functions
5 years ago
BC Ko
ac0a690768
remove Missiles[]
5 years ago
BC Ko
7bbe587669
remove unnecessary assert
5 years ago
BC Ko
6a42f7eb8c
compare pointers intead of indices
5 years ago
BC Ko
bf8c71dc24
remove Missiles[] in PutMissile()
5 years ago
Anders Jenbo
7f6e171b4b
Use BFLAG_MISSILE instead of dMissile
5 years ago
qndel
d76158ca03
reflect without missile! ( #2659 )
5 years ago
Anders Jenbo
3df8af0e9d
Apply missile_id to _mitype
5 years ago
Anders Jenbo
d4bd409472
Deduplicate manashild/reflect code
5 years ago
BC Ko
1a6562e16d
Merge pull request #2648 from bcko/2435_refactor_Missiles_3
5 years ago
qndel
7ba878fd4d
fix reflect on loading
5 years ago
Anders Jenbo
4c6a5bab56
Clean up god mode
5 years ago
BC Ko
14b7e3bdc1
2435 refactor missiles part 2 ( #2635 )
5 years ago
BC Ko
aa109b14b4
refactor UpdateMissileVelocity
...
refactor MI_ResurrectBeam
Co-authored-by: Anders Jenbo <anders@jenbo.dk>
5 years ago