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
Anders Jenbo
fa7f3442e4
Fix loading monster missiles
5 years ago
Anders Jenbo
f289fbcec5
Remove dead missile code
5 years ago
Vladimir Olteanu
b76e8c060b
Introduce MissileDataFlags
5 years ago
Vladimir Olteanu
61f82d1944
Remove LoadMissileGFX
5 years ago
Vladimir Olteanu
040ca7b1e9
Remove logic related to unused MFLAG_ALLOW_SPECIAL
5 years ago
Vladimir Olteanu
7482b23473
MissileSpriteData: move checks for hidden sprites to class members
5 years ago
Vladimir Olteanu
3364a4e00c
Refactor MisFileData
...
MisFileData: make pinnedMem private
5 years ago
vlad
b7a92d549c
fixes stone curse forever bug caused by negative monster index
...
fixes https://github.com/diasurgical/devilutionX/issues/2550
5 years ago
qndel
0a70a8cece
unify block formula
5 years ago
qndel
9056092cf8
more clamps ( #2496 )
5 years ago
qndel
d68181fd91
_pIEnAc bugfix
5 years ago
qndel
169f980038
ranged/magic formulas
5 years ago
qndel
bd5e30db52
replace armor formula
5 years ago
Robin Eklind
8f936de2c5
missiles: add BUGFIXes for MI_LArrow, MI_Arrow, MI_Lightctrl and MI_Weapexp
...
These bugs are related to time of access, where fields of e.g. a
player or monster struct is accessed upon missile impact (instead
of missile launch), and at this point, the monster may be dead, or
the player may have left the game, resulting in accessing garbage
data that may have been overwritten by other data (e.g. new monster
spawn or new player joining).
One way to resolve this issue is to store e.g. the damage in the
missile struct when lanuching the missing. This way, the missile
would have all information required to know its damage on imact
instead of having to rely on outside sources that may no longer
be present.
5 years ago
Anders Jenbo
1b6196f39b
Correct missile ring offset
...
Without this the
5 years ago
Anders Jenbo
4451a519eb
Fix two OOBs in missiles.cpp
5 years ago
Vladimir Olteanu
629bd69fab
Remove duplicate code in AddFooRune
5 years ago
Anders Jenbo
9c4e34f988
Player by reference
5 years ago
Anders Jenbo
8ba3bbb6a4
Have PosOkPlayer take PlayerStruct as input ( #2430 )
5 years ago
Anders Jenbo
0889780923
Remove more usage of miniwin types
5 years ago
Anders Jenbo
78124fb389
Add GolemHoldingCell
5 years ago
Anders Jenbo
bef214d0ca
Clean up monster ide handeling in CheckMissileCol
5 years ago
Anders Jenbo
9c0760e780
♻️ Clean up various checks in monster logic
5 years ago