Fix mitocholide runtime when applied to dismembered limb (#28010)

* fix runtime

* handle all cases

* move trait
This commit is contained in:
Mira
2025-01-31 18:54:01 +03:00
committed by GitHub
parent 40d0ced21f
commit 24c7f0ffec
4 changed files with 16 additions and 3 deletions
@@ -394,7 +394,7 @@ This function completely restores a damaged organ to perfect condition.
surgeryize()
if(is_robotic()) //Robotic organs stay robotic.
status = ORGAN_ROBOT
else if(HAS_TRAIT(owner, TRAIT_I_WANT_BRAINS))
else if(HAS_TRAIT(src, TRAIT_I_WANT_BRAINS_ORGAN))
status = ORGAN_DEAD
else
status = 0
@@ -402,7 +402,7 @@ This function completely restores a damaged organ to perfect condition.
perma_injury = 0
brute_dam = 0
burn_dam = 0
if(!HAS_TRAIT(owner, TRAIT_I_WANT_BRAINS)) // zombies's wounds don't close. Because thats cool.
if(!HAS_TRAIT(src, TRAIT_I_WANT_BRAINS_ORGAN)) // zombies's wounds don't close. Because thats cool.
open = ORGAN_CLOSED //Closing all wounds.
// handle internal organs