From a0c1180fd02562886b2e58232b1e6c6b8d5ec635 Mon Sep 17 00:00:00 2001 From: Anewbe Date: Sat, 1 Apr 2017 00:10:18 -0500 Subject: [PATCH] Lung damage QOL --- code/modules/mob/living/carbon/human/life.dm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/code/modules/mob/living/carbon/human/life.dm b/code/modules/mob/living/carbon/human/life.dm index 7ecf8cd8eff..396b98df32e 100644 --- a/code/modules/mob/living/carbon/human/life.dm +++ b/code/modules/mob/living/carbon/human/life.dm @@ -356,7 +356,7 @@ var/brainOxPercent = 0.02 //Default2% of your current oxyloss is applied as brain damage, 50 oxyloss is 1 brain damage if(CE_STABLE in chem_effects) brainOxPercent = 0.01 //Halved in effect - if(prob(5)) + if(oxyloss >= 20 && prob(5)) adjustBrainLoss(brainOxPercent * oxyloss) oxygen_alert = max(oxygen_alert, 1) @@ -377,8 +377,9 @@ safe_pressure_min *= 1.25 else if(breath) if(breath.total_moles < BREATH_MOLES / 10 || breath.total_moles > BREATH_MOLES * 5) - if (prob(8)) - rupture_lung() + if(is_below_sound_pressure(get_turf(src))) //No more popped lungs from choking/drowning + if (prob(8)) + rupture_lung() var/safe_exhaled_max = 10 var/safe_toxins_max = 0.2