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

贡献者指南