mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-15 09:03:23 +01:00
Fix mitocholide runtime when applied to dismembered limb (#28010)
* fix runtime * handle all cases * move trait
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user