From 2ae18cd35e65abc116389dcbea0b0473f283b961 Mon Sep 17 00:00:00 2001 From: LetterJay Date: Tue, 12 Sep 2017 00:52:07 -0500 Subject: [PATCH] Update life.dm --- code/modules/mob/living/carbon/life.dm | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/code/modules/mob/living/carbon/life.dm b/code/modules/mob/living/carbon/life.dm index 9065ceb30a..60900e298f 100644 --- a/code/modules/mob/living/carbon/life.dm +++ b/code/modules/mob/living/carbon/life.dm @@ -65,14 +65,14 @@ else if(health <= HEALTH_THRESHOLD_CRIT) losebreath += 0.25 //You're having trouble breathing in soft crit, so you'll miss a breath one in four times - //Suffocate - if(losebreath >= 1) //You've missed a breath, take oxy damage - losebreath-- - if(prob(10)) - emote("gasp") +//Start of a breath chain, calls breathe() +/mob/living/carbon/handle_breathing(times_fired) + if((times_fired % 4) == 2 || failed_last_breath) + breathe() //Breathe per 4 ticks, unless suffocating + else if(istype(loc, /obj/)) - var/obj/loc_as_obj = loc -loc_as_obj.handle_internal_lifeform(src,0) + var/obj/location_as_object = loc + location_as_object.handle_internal_lifeform(src,0) else //Breathe from internal breath = get_breath_from_internal(BREATH_VOLUME)