JSON load order issue with monster death_function and spells #75332
Labels
Code: Infrastructure / Style / Static Analysis
Code internal infrastructure and style
Mechanics: Enchantments / Spells
Enchantments and spells
Monsters
Monsters both friendly and unfriendly.
(S2 - Confirmed)
Bug that's been confirmed to exist
Describe the bug
#74678
quickling shadow does not fire any spell on death. Investigation shows that is because
has_effect
is never set to trueCataclysm-DDA/src/monster.cpp
Line 2846 in 0b942b3
because the spell is considered invalid
Cataclysm-DDA/src/monstergenerator.cpp
Line 1824 in 0b942b3
Renaming
monster_spells.json
toamonster_spells.json
works around this.Attach save file
For reproduction's sake:
Xeddd-trimmed.tar.gz
Steps to reproduce
load save, kill quickling shadow next to you. Hold tab or use debug menu or whatever.
Expected behavior
The death spells should fire on death, regardless of how the json files are named
Screenshots
No response
Versions and configuration
aa5d1b1
Additional context
No response
The text was updated successfully, but these errors were encountered: