ephphatha
32d397eb2a
Add max_size checks when adding missiles to allow for limited size containers
...
This doesn't handle failed allocations (e.g. if the platform runs out of memory) but makes it easier to use a fixed size container on limited memory devices.
4 years ago
ephphatha
d3c42544a6
Address warnings/dead code
4 years ago
obligaron
234a053863
Change Missiles Array to std::list
4 years ago
obligaron
a45eca5d40
Remove unused ChainStruct
4 years ago
obligaron
0ed8c941de
Replace FindParent and use of var4 to identify parent with pParent member in AddMissileParameter
4 years ago
obligaron
1aabcf295b
Add AddMissileParameter
4 years ago
obligaron
ed5a3b3dcb
Remove SyncPositionWithParent
4 years ago
KPhoenix
b01d939d29
Fix LArrow Behavior
...
Fixes collision detection for the fire/lightning sprite that causes element base damage on collision with players and monsters, and removed Damage Mod on items from changing elemental damage.
4 years ago
Stephen C. Wills
7525193a9f
Calculate Fireball missile damage in collision logic
...
Co-authored-by: Andrew James <ephphatha@thelettereph.com>
Co-authored-by: Anders Jenbo <anders@jenbo.dk>
4 years ago
SoundChaser83
a7041bb435
Fix Torchant and Hellbat damage range being ignored
...
Monsters like weren't using their min/max damage from the monster data table to determine Fireball damage
4 years ago
SoundChaser83
b52724a15e
Fix monster damage potentially being off by 63/64th
...
Monster damage values from melee/missile hits could potentially add or subtract up to 63/64ths of damage over and above a monster's usual damage range
Co-authored-by: Stephen C. Wills <staphen@gmail.com>
4 years ago
KPhoenix
02dc1f193e
Cleanup missiles.cpp ( #3883 )
4 years ago
Anders Jenbo
6b2481a76c
Touch support on all SDL2 platforms
4 years ago
ephphatha
82e9c3ea14
Clean up remaining dObject references in missiles.cpp
4 years ago
ephphatha
279fbe32b3
Tidy up checks for missile collision with objects/tiles
...
This was repeated in multiple places with essentially identical logic. Can expose the existing missiles.cpp function to capture the use in scrollrt.cpp
4 years ago
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