[MIRROR] Fixes permanent stamina crit while in stasis (#1271)

* Fixes permanent stamina crit while in stasis (#54319)

* Fixes permanent stamina crit while in stasis

Co-authored-by: Rohesie <rohesie@gmail.com>
This commit is contained in:
SkyratBot
2020-10-12 23:23:19 +02:00
committed by GitHub
co-authored by Rohesie
parent a90f79ab80
commit 1c17a34752
+5 -6
View File
@@ -20,12 +20,6 @@
if(.) //not dead
handle_blood()
if(stat != DEAD)
var/bprv = handle_bodyparts()
if(bprv & BODYPART_LIFE_UPDATE_HEALTH)
update_stamina() //needs to go before updatehealth to remove stamcrit
updatehealth()
if(stat != DEAD)
handle_brain_damage()
@@ -35,6 +29,11 @@
if(stat == DEAD)
stop_sound_channel(CHANNEL_HEARTBEAT)
LoadComponent(/datum/component/rot/corpse)
else
var/bprv = handle_bodyparts()
if(bprv & BODYPART_LIFE_UPDATE_HEALTH)
update_stamina() //needs to go before updatehealth to remove stamcrit
updatehealth()
check_cremation()