CleverRaven/Cataclysm-DDA

limb removing mutations causes errors on each turn

Open

#64,474 建立於 2023年3月22日

在 GitHub 查看
 (2 留言) (0 反應) (0 負責人)C++ (3,991 fork)batch import
(P3 - Medium)(S2 - Confirmed)Help WantedLimbs[C++]

倉庫指標

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

描述

Describe the bug

limb removing mutations like debug only head DEBUG _NO_TORSO causes error message for each limb after it mutates:

` DEBUG : Could not find bodypart arm_l in Roman Hansel's body

FUNCTION : get_part FILE : D:\a\Cataclysm-DDA\Cataclysm-DDA\src\creature.cpp LINE : 2001 VERSION : 1eca109 ` it continues with every other limb which is missing it repeats every turn, as it checks the limbs it trying to remove dont exist, yet removing them and causes errors ignoring error with i button stops the error messages, and character continues the game with only head without no problem

Attach save file

North Hornell-trimmed.tar.gz

Steps to reproduce

enter debug mode mutation menu select limb removing mutation, such as debug no torso activate it

Expected behavior

after realising arms game trying to remove doesnt exist, it should stop trying to remove them or alternatively, mutations should not use enchantment that activates every turn

Screenshots

No response

Versions and configuration

  • OS: Windows
    • OS Version: 10.0.19044.2604 (21H2)
  • Game Version: 1eca109 [64-bit]
  • Graphics Version: Tiles
  • Game Language: System language []
  • Mods loaded: [ Dark Days Ahead [dda], Limb Test [limb_test] ]

Additional context

No response

貢獻者指南