CleverRaven/Cataclysm-DDA

Magiclym: Negative Foods, able to eat forever

Open

#65,040 建立於 2023年4月13日

在 GitHub 查看
 (2 留言) (0 反應) (0 負責人)C++ (3,991 fork)batch import
(S2 - Confirmed)<Bug>Help WantedInventory / AIM / ZonesMods: Magiclysm[C++]

倉庫指標

Star
 (9,264 star)
PR 合併指標
 (平均合併 6天 5小時) (30 天內合併 292 個 PR)

描述

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

貢獻者指南