fixes ipcs not dying in crit (#23406)

This commit is contained in:
GDN
2023-11-29 12:08:44 -05:00
committed by GitHub
parent 5bc76dd0a8
commit 9a0f662dc6
3 changed files with 3 additions and 0 deletions
@@ -401,6 +401,7 @@
// For special snowflake species effects
// (Slime People changing color based on the reagents they consume)
/datum/species/proc/handle_life(mob/living/carbon/human/H)
SHOULD_CALL_PARENT(TRUE)
if(HAS_TRAIT(H, TRAIT_NOBREATH))
var/takes_crit_damage = (!HAS_TRAIT(H, TRAIT_NOCRITDAMAGE))
if((H.health <= HEALTH_THRESHOLD_CRIT) && takes_crit_damage)
@@ -268,6 +268,7 @@
//Regenerates because self-repairing super-advanced alien tech
/datum/species/golem/alloy/handle_life(mob/living/carbon/human/H)
SHOULD_CALL_PARENT(FALSE)
if(H.stat == DEAD)
return
H.adjustBruteLoss(-2)
@@ -126,6 +126,7 @@
H.update_fhair()
/datum/species/machine/handle_life(mob/living/carbon/human/H) // Handles IPC starvation
..()
if(isLivingSSD(H)) // We don't want AFK people dying from this
return
if(H.nutrition >= NUTRITION_LEVEL_HYPOGLYCEMIA)