CleverRaven/Cataclysm-DDA

Magiclym: Negative Foods, able to eat forever

Open

#65,040 opened on Apr 13, 2023

View on GitHub
 (2 comments) (0 reactions) (0 assignees)C++ (3,991 forks)batch import
(S2 - Confirmed)<Bug>Help WantedInventory / AIM / ZonesMods: Magiclysm[C++]

Repository metrics

Stars
 (9,264 stars)
PR merge metrics
 (Avg merge 6d 5h) (292 merged PRs in 30d)

Description

Describe the bug

Turns out that if you have glowing mushrooms from the Magiclym mod, and use them in an auto eat zone, you can constantly eat them until their stacks becomes negative.

DEBUG : did not found item glowing mushroom caps to remove it!

FUNCTION : i_rem FILE : D:\a\Cataclysm-DDA\Cataclysm-DDA\src\character_inventory.cpp LINE : 289 VERSION : 3d15dcc

Once this happens, the mushroom stack have gone into the negatives, and you can keep eating from the stack forever if you want. However, if you attempt to pick up the stack, or move the stack, you cause a stack overflow and crash the game.

Attach save file

Damascus-trimmed.tar.gz

Steps to reproduce

  1. Press (R)ead
  2. Read while auto eating, wait until you start eating glowing mushrooms (Likely a few IRL seconds)
  3. Resume reading until auto eating mushrooms.
  4. Voila, error!

Expected behavior

I expected the stack to disappear upon reaching zero or negative numbers.

Screenshots

image

image

image

Versions and configuration

  • OS: Windows
    • OS Version: 10.0.19044.2728 (21H2)
  • Game Version: 3d15dcc [64-bit]
  • Graphics Version: Tiles
  • Game Language: System language []
  • Mods loaded: [ Dark Days Ahead [dda], Disable NPC Needs [no_npc_food], Portal Storms Ignore NPCs [personal_portal_storms], No Fungal Growth [no_fungal_growth], Bionic Professions [package_bionic_professions], Aftershock [aftershock], Blaze Industries [blazeindustries], Magiclysm [magiclysm], Xedra Evolved [xedra_evolved], Bombastic Perks [bombastic_perks], My Sweet Cataclysm [my_sweet_cataclysm], Mythical Martial Arts [MMA], Crazy Cataclysm [crazy_cataclysm], SpeedyDex [speedydex], Stats Through Kills [stats_through_kills], Stats Through Skills [StatsThroughSkills] ]

Additional context

debug.log crash.log

Contributor guide