Commit graph

689 commits

Author SHA1 Message Date
obligaron
e62aaa562f Fix missiles don't hit horizontal walking players/monsters 2021-09-17 21:03:41 +02:00
qndel
a5ea763567 fix saves bricked by spawn command 2021-09-17 08:46:11 +02:00
staphen
60492ef954 Add proper graphics for gamepad 2021-09-16 19:25:31 +02:00
Siddharth singh chouhan
ba161f623e
Move documentation from implementations to declarations. (#2858) 2021-09-13 15:45:38 +02:00
Juliano Leal Goncalves
379a27b64a ♻️ Convert 'ItemType' enum to enum class
🎨 Rename 'ItemType' elements to enum class standards
2021-09-13 00:25:49 +02:00
ephphatha
8e155e011f Rename helpers on Monster to match AnimationInfo 2021-09-12 02:27:47 +02:00
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
2021-09-12 02:27:47 +02:00
Anders Jenbo
cd79f0204d 🚨 Fix compiler warnings 2021-09-12 01:37:28 +02:00
qndel
90eb35d718 fix golems on maps with set pieces 2021-09-07 16:52:36 +02:00
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).
2021-09-07 01:09:51 +02:00
qndel
22ff664dee golem assert fix 2021-09-06 21:02:45 +02:00
Juliano Leal Goncalves
5430672477
🚚 Rename 'UniqMonstStruct' struct to 'UniqueMonsterData' (#2814) 2021-09-06 17:50:41 +02:00
Juliano Leal Goncalves
9f4438fa22
🚚 Rename 'TextDataStruct' struct to 'Speech' (#2805) 2021-09-06 17:47:07 +02:00
Juliano Leal Goncalves
32e22a16b3 ♻️ Leverage conversion constructor for 'Direction' to 'Displacement'
This makes code more consistent overall as we use the same pattern for dealing with Sizes.
2021-09-06 12:57:59 +02:00
Juliano Leal Goncalves
0d3d4c14f6
🚚 Rename 'Dead' concept to 'Corpse' everywhere (#2808) 2021-09-06 12:49:00 +02:00
Juliano Leal Goncalves
940a120bf9 ♻️ Replace 'ViewX' and 'ViewY' globals with single 'ViewPosition' 2021-09-04 18:06:28 -04:00
Juliano Leal Goncalves
d225202c34 🚚 Rename 'MonsterClass' members for consistency 2021-09-04 23:37:19 +02:00
Juliano Leal Goncalves
21b481bb46 ♻️ Convert 'MonsterClass' enum to enum class 2021-09-04 23:37:19 +02:00
Juliano Leal Goncalves
db1026fa39 🚚 Rename 'MonsterDataStruct' to 'MonsterData' 2021-09-02 21:57:50 +02:00
Juliano Leal Goncalves
6146b828e9 🚚 Rename 'MonsterData' global to 'MonstersData'
This avoids conflicts with the struct name as we'll be renaming that next.
2021-09-02 21:57:50 +02:00
qndel
0323b46e40 fix quest unique monster level 2021-09-02 17:08:09 +02:00
Juliano Leal Goncalves
6e1d05187e 🚚 Rename 'MissileStruct' to 'Missile' 2021-09-02 05:46:44 +02:00
Juliano Leal Goncalves
20db8d1a11 🚚 Rename 'MonsterStruct' to 'Monster' 2021-09-01 22:26:37 +02:00
Juliano Leal Goncalves
fe95e36d90 🎨 Leverage 'IsAnyOf' on monster mode checks 2021-09-01 19:15:08 +02:00
Juliano Leal Goncalves
1cd62bbc64 🚚 Rename 'MonsterMode' members for semantic and consistency 2021-09-01 19:15:08 +02:00
Juliano Leal Goncalves
69a7cb66d4 ♻️ Convert 'MON_MODE' enum to 'MonsterMode' enum class 2021-09-01 19:15:08 +02:00
Juliano Leal Goncalves
314ae59828 ♻️ Leverage 'IsWalking' function for monster walking checks 2021-09-01 19:15:08 +02:00
Juliano Leal Goncalves
5a9dd86e80 🎨 Simplify monster AI walking checks using 'IsAnyOf'/'IsNoneOf' 2021-09-01 19:15:08 +02:00
Anders Jenbo
7cb73a6717 Minimize impact of NOSOUND 2021-08-30 10:57:59 +02:00
Anders Jenbo
bee8388c20 Fix inaccurate gameplay with NOSOUND 2021-08-30 10:57:59 +02:00
Anders Jenbo
cf4989bcbb [hellfire] Fix monsters being unable to hit at close range
This seams to have been done to better align the magic missile fired by
the bonedeamon, but for all other monsters the alignment is less ideal
and they become unable to hit there enemy at close range.
2021-08-27 05:20:56 +02:00
BC Ko
373adcf65b modify AddMissile() parameters and remove Missiles[] in MissToMonst() 2021-08-26 06:03:03 +02:00
BC Ko
4834905eac remove Missiles[] in SpawnGolem() 2021-08-26 06:03:03 +02:00
Anders Jenbo
9a6820493f No missile golem
Simplify spawning golem, the golem will now spawn in the same tick
instead of next tick
2021-08-25 20:24:45 +02:00
Anders Jenbo
d7c6d8b189 Use proper Direction type for AddMissile midir 2021-08-25 20:24:45 +02:00
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
2021-08-25 20:24:45 +02:00
qndel
3d92b6eea5 Rewrite manashield into not using a missile 2021-08-25 19:32:10 +02:00
qndel
9647299146 share info about expiring reflect 2021-08-24 04:56:29 +02:00
Anders Jenbo
96b19ca8d5 Set _micaster type to mienemy_type
Rino never made use of the player id, so no reason to abuse _micaster
2021-08-23 10:51:06 +02:00
Anders Jenbo
df636c0afc Remove DIR_OMNI 2021-08-23 10:51:06 +02:00
Anders Jenbo
a95f6b1754 [hellfire] Bugfix: Correctly detect nultiple walls
Fixes #2656
2021-08-22 21:21:33 +02:00
Anders Jenbo
7f6e171b4b Use BFLAG_MISSILE instead of dMissile 2021-08-22 21:21:33 +02:00
Anders Jenbo
3df8af0e9d Apply missile_id to _mitype 2021-08-21 09:10:53 +02:00
BC Ko
fd1cdad0fe format fix 2021-08-21 03:29:35 +02:00
BC Ko
e473136e2f move BUGFIX comment 2021-08-21 03:29:35 +02:00
BC Ko
abc00ad107 auto &missile 2021-08-21 03:29:35 +02:00
Anders Jenbo
5ddcd90ff9 Make NetSendCmdQuest() take a quest structure as input 2021-08-20 12:13:17 +02:00
Anders Jenbo
766774bc53 Use loops to spawn needed golems 2021-08-19 23:14:31 +02:00
Anders Jenbo
4c6a5bab56 Clean up god mode 2021-08-19 20:36:12 +02:00
BC Ko
14b7e3bdc1
2435 refactor missiles part 2 (#2635) 2021-08-19 08:15:41 +02:00