CleverRaven/Cataclysm-DDA

limb removing mutations causes errors on each turn

Open

#64.474 aberto em 22 de mar. de 2023

Ver no GitHub
 (2 comments) (0 reactions) (0 assignees)C++ (3.991 forks)batch import
(P3 - Medium)(S2 - Confirmed)Help WantedLimbs[C++]

Métricas do repositório

Stars
 (9.264 stars)
Métricas de merge de PR
 (Mesclagem média 6d 5h) (292 fundiu PRs em 30d)

Description

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

Guia do colaborador