Cataclysm-dda: Using comestible items with 'cast_spell' action no longer function

Created on 21 Jun 2020  路  5Comments  路  Source: CleverRaven/Cataclysm-DDA

Describe the bug


Spellcasting comestible items like the Cat's Grace potion doesn't provide the effect after being consumed.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Spawn a potion that modifies your stats when eaten.
  2. (E)at it.
  3. The potion is consumed, but doesn't provide any effects.

Expected behavior

After being consumed, the spellcasting comestible item should cast whatever spell it has.

Screenshots

Versions and configuration

  • OS: Windows

    • OS Version: 10.0 1803

  • Game Version: 0.E-3388-gc2cd66c [64-bit]
  • Graphics Version: Tiles
  • Game Language: System language []
  • Mods loaded: [
    Dark Days Ahead [dda],
    Disable NPC Needs [no_npc_food],
    Magiclysm [magiclysm]
    ]

    Additional context

(S2 - Confirmed) <Bug> Items / Item Actions / Item Qualities Food / Vitamins

Most helpful comment

Please do not link to ChaosVolt's posts, he's an incredibly unreliable and spammy bug reporter, and bug reports are not welcome from him, either directly or via intermediaries.

All 5 comments

This issue is worded in such a way that it would seem like it's a Magiclysm issue specifically, but it's not. I stepped through it, and the comestibles _do_ properly invoke the iuse actor, but it looks like the eat activity somehow overwrites the spellcasting actor, so i'm willing to bet this is an issue for all comestibles that have a use action.

Looking into this further, it seems you're correct. Evidently Chaosvolt had discovered this bug recently as well.

Please do not link to ChaosVolt's posts, he's an incredibly unreliable and spammy bug reporter, and bug reports are not welcome from him, either directly or via intermediaries.

I can reproduce this - spawn all of the following stat-modifying potions:

  • Cat's Grace
  • Eagle's Sight
  • Ogre's Strength
  • Fox's Cunning

Drink them all:

image

No effect on stats:

image

  • OS: Linux

    • OS Version: Distributor ID: Pop; Description: Pop!_OS 20.04 LTS; Release: 20.04; Codename: focal;

  • Game Version: 0.E-3417-gc1e33efa75 [64-bit]
  • Graphics Version: Tiles
  • Game Language: System language []
  • Mods loaded: [
    Dark Days Ahead [dda],
    Disable NPC Needs [no_npc_food],
    Magiclysm [magiclysm]
    ]

so i'm willing to bet this is an issue for all comestibles that have a use action.

I've decided to test comestibles with the consume_drug, heal, mutagen, firestarter, deploy_tent, and PICK_LOCK use actions respectively. Three of these use actions that are commonly associated with comestibles, the other three are normally used by tools as far as I know

What I sort of managed to figure out from testing is that only comestibles that use cast_spell are affected

Was this page helpful?
0 / 5 - 0 ratings