CleverRaven / Cataclysm-DDA

Cataclysm - Dark Days Ahead. A turn-based survival game set in a post-apocalyptic world.
http://cataclysmdda.org
Other
10.67k stars 4.18k forks source link

Emission of hallucinogenic spores hangs game #77795

Open ashGlaw opened 1 week ago

ashGlaw commented 1 week ago

Describe the bug

Something is trying, and failing, to emit hallucinogenic spores, causing the game to hang.

Attach save file

Fearrington-trimmed.tar.gz

Steps to reproduce

Load save and wait a few turns, the game should hang and EVENTUALLY (takes ages) give an error message

Expected behavior

I would expect the game to not try to cause an invalid effect

Screenshots

No response

Versions and configuration

Additional context

DEBUG : Invalid effect, ID: emit_hallucinogenic_spores_blast

FUNCTION : void Creature::add_effect(const effect_source&, const efftype_id&, const time_duration&, bodypart_id, bool, int, bool, bool) FILE : src/creature.cpp LINE : 1677 VERSION : cdda-experimental-2024-11-12-2220 7b05cecc1a

GuardianDll commented 1 week ago

emit_hallucinogenic_spores_blast is not an effect, it's emit The spell effect should be replaced from "attack" to "emit" https://github.com/CleverRaven/Cataclysm-DDA/blob/7b05cecc1a7d7dab6dfa8d042e8d04c9f0f40589/data/json/monster_special_attacks/spells.json#L581-L582