From 741cb2d4231dc316ecde66774226863ec85fae07 Mon Sep 17 00:00:00 2001 From: Kelenius Date: Mon, 12 Oct 2015 13:57:47 +0300 Subject: [PATCH] It was bork, I made it not bork --- code/modules/mob/living/carbon/human/life.dm | 29 ++++++-------------- 1 file changed, 9 insertions(+), 20 deletions(-) diff --git a/code/modules/mob/living/carbon/human/life.dm b/code/modules/mob/living/carbon/human/life.dm index 96e3c76f0b..74844fd3b1 100644 --- a/code/modules/mob/living/carbon/human/life.dm +++ b/code/modules/mob/living/carbon/human/life.dm @@ -342,26 +342,16 @@ if(status_flags & GODMODE) return - if(status_flags & GODMODE) - return - - //exposure to extreme pressures can rupture lungs - if(breath && (breath.total_moles < BREATH_MOLES / 5 || breath.total_moles > BREATH_MOLES * 5)) - if(!is_lung_ruptured() && prob(5)) - rupture_lung() - - //check if we actually need to process breath - if(!breath || (breath.total_moles == 0) || suiciding) - failed_last_breath = 1 - if(suiciding) - adjustOxyLoss(2)//If you are suiciding, you should die a little bit faster - oxygen_alert = max(oxygen_alert, 1) - return 0 - if(health > config.health_threshold_crit) - adjustOxyLoss(HUMAN_MAX_OXYLOSS) - else - adjustOxyLoss(HUMAN_CRIT_MAX_OXYLOSS) + //exposure to extreme pressures can rupture lungs + if(breath && (breath.total_moles < BREATH_MOLES / 5 || breath.total_moles > BREATH_MOLES * 5)) + if(!is_lung_ruptured() && prob(5)) + rupture_lung() + //check if we actually need to process breath + if(!breath || (breath.total_moles == 0) || suiciding) + failed_last_breath = 1 + if(suiciding) + adjustOxyLoss(2)//If you are suiciding, you should die a little bit faster oxygen_alert = max(oxygen_alert, 1) return 0 if(health > config.health_threshold_crit) @@ -370,7 +360,6 @@ adjustOxyLoss(HUMAN_CRIT_MAX_OXYLOSS) oxygen_alert = max(oxygen_alert, 1) - return 0 var/safe_pressure_min = 16 // Minimum safe partial pressure of breathable gas in kPa