From 0698fb759a23e7e1b62f01cd3faf8b5fd2224139 Mon Sep 17 00:00:00 2001 From: CIB Date: Thu, 31 May 2012 20:59:51 +0300 Subject: [PATCH] Reduce health loss in crit. (For Erthilo) --- code/modules/mob/living/carbon/human/life.dm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/code/modules/mob/living/carbon/human/life.dm b/code/modules/mob/living/carbon/human/life.dm index e16ea5fe505..bb1dfe2287d 100644 --- a/code/modules/mob/living/carbon/human/life.dm +++ b/code/modules/mob/living/carbon/human/life.dm @@ -468,7 +468,12 @@ if(!breath || (breath.total_moles == 0)) if(reagents.has_reagent("inaprovaline")) return - adjustOxyLoss(HUMAN_MAX_OXYLOSS) + if(health < config.health_threshold_crit) + // in crit, we pretend your metabolism has become slower, which + // will reduce the rate at which you lose health + adjustOxyLoss(round(HUMAN_MAX_OXYLOSS / 2)) + else + adjustOxyLoss(HUMAN_MAX_OXYLOSS) oxygen_alert = max(oxygen_alert, 1)