CleverRaven / Cataclysm-DDA

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

[Xedra Evolved] Dreamer artefact with XAEA_line doesn't appear to do anything #76743

Open Psithief opened 1 month ago

Psithief commented 1 month ago

Describe the bug

Dreamer artefacts with the XAEA_line spell have the message Silently, a part of the world nearby just disappears. but produces no visible effect.

Attach save file

Embarrass-trimmed.tar.gz

Steps to reproduce

  1. Create a character
  2. Spawn a dreamer artefact
  3. Save the game
  4. Open the save game file and edit the dreamer artefact to use XAEA_line instead of whatever spell it uses,
  5. Load the game
  6. Activate the artefact

Expected behavior

The spell definition implies it is meant to destroy terrain in a random line of length ~40 from the player avatar's location by dealing a huge amount of bash damage to everything in its path.

Screenshots

No response

Versions and configuration

Additional context

No response

RedMisao commented 1 month ago

SPOILERS for how the artifact spell works.

The artifact picks a random creature up to 40 tiles from you (the target), and casts a spell to it, bashing the terrain under the aoe.

I tried adding the spell itself via debug to the character and it works as intended. When it fails to find a target, it prints "You can't find a suitable target" from this line. The RANDOM_CRITTER flags specifically prevents terrain alone from being targeted: the target must be a creature (monster, NPC) else the spell fails.

Is that line displaying for you, if you cast the spell from the artifact? Spells casted indirectly (not from the player being the caster), don't always print messages or even VFX, so it may be failing without printing the message.

Have you tried adding any other spell and see if it works?

Psithief commented 1 month ago

I've tried using the debug menu to kill everything in an area first, but despite that, I have never received the message about not finding a suitable target.

I've also tried spawning animals in the evac shelter (and its basement) and using the artefacts, but still no effect.

Other XAEA_ spells seem to do what they say, like revealing the map, restore stamina, mana, or increase a statistic briefly.