From 0ffe412121280d555a1b17e8baa4d08b20316f35 Mon Sep 17 00:00:00 2001 From: Fox-McCloud Date: Thu, 5 Mar 2015 18:33:18 -0500 Subject: [PATCH] Pressure protection --- code/modules/mob/living/carbon/human/life.dm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/code/modules/mob/living/carbon/human/life.dm b/code/modules/mob/living/carbon/human/life.dm index 6f308b89e10..9c0c1c0fee0 100644 --- a/code/modules/mob/living/carbon/human/life.dm +++ b/code/modules/mob/living/carbon/human/life.dm @@ -146,10 +146,8 @@ var/global/list/brutefireloss_overlays = list("1" = image("icon" = 'icons/mob/sc var/pressure_difference = abs( pressure - ONE_ATMOSPHERE ) var/pressure_adjustment_coefficient = 1 //Determins how much the clothing you are wearing protects you in percent. - if(wear_suit && (wear_suit.flags & STOPSPRESSUREDMAGE)) - pressure_adjustment_coefficient -= PRESSURE_SUIT_REDUCTION_COEFFICIENT - if(head && (head.flags & STOPSPRESSUREDMAGE)) - pressure_adjustment_coefficient -= PRESSURE_HEAD_REDUCTION_COEFFICIENT + if(wear_suit && (wear_suit.flags & STOPSPRESSUREDMAGE) && head && (head.flags & STOPSPRESSUREDMAGE)) // Complete set of pressure-proof suit worn, assume fully sealed. + pressure_adjustment_coefficient = 0 pressure_adjustment_coefficient = max(pressure_adjustment_coefficient,0) //So it isn't less than 0 pressure_difference = pressure_difference * pressure_adjustment_coefficient if(pressure > ONE_ATMOSPHERE)