Fix cryo cells not autoejecting patients with burn wounds (#20967)

* Don't count permanent injury as organic

* Fix direct `cause_burn_wound()` calls not updating health
This commit is contained in:
Nathan Winters
2023-05-02 22:00:00 +02:00
committed by GitHub
parent 0c84441530
commit 65978a1070
2 changed files with 13 additions and 8 deletions
@@ -175,11 +175,14 @@ I use this to standardize shadowling dethrall code
/mob/living/carbon/human/has_organic_damage()
var/robo_damage = 0
var/perma_injury_damage = 0
for(var/obj/item/organ/external/E in bodyparts)
if(E.is_robotic())
robo_damage += E.brute_dam
robo_damage += E.burn_dam
return health < maxHealth - robo_damage
if(E.perma_injury > (E.brute_dam + E.burn_dam))
perma_injury_damage += E.perma_injury - (E.brute_dam + E.burn_dam)
return health < maxHealth - robo_damage - perma_injury_damage
/mob/living/carbon/human/proc/handle_splints() //proc that rebuilds the list of splints on this person, for ease of processing
splinted_limbs.Cut()