mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 12:07:27 +01:00
fixes ipcs not dying in crit (#23406)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user