From 8b90cd6fa8ab87e0d40a71f0e289d911b657d162 Mon Sep 17 00:00:00 2001 From: cib Date: Tue, 11 Dec 2012 14:50:58 +0100 Subject: [PATCH] Experimental: Disable temperature exchange with space and add low pressure damage. This'll stop the ridiculous cold temperatures from opening an airlock for half a second. --- code/ZAS/ZAS_Zones.dm | 5 +++-- code/modules/mob/living/carbon/human/life.dm | 4 ++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/code/ZAS/ZAS_Zones.dm b/code/ZAS/ZAS_Zones.dm index 1a396cd258a..e6f1b67aebd 100644 --- a/code/ZAS/ZAS_Zones.dm +++ b/code/ZAS/ZAS_Zones.dm @@ -371,7 +371,8 @@ proc/ShareSpace(datum/gas_mixture/A, list/unsimulated_tiles) A.carbon_dioxide = max(0, (A.carbon_dioxide - co2_avg) * (1-ratio) + co2_avg ) A.toxins = max(0, (A.toxins - plasma_avg) * (1-ratio) + plasma_avg ) - A.temperature = max(TCMB, (A.temperature - temp_avg) * (1-ratio) + temp_avg ) + // EXPERIMENTAL: Disable space being cold + //A.temperature = max(TCMB, (A.temperature - temp_avg) * (1-ratio) + temp_avg ) for(var/datum/gas/G in A.trace_gases) var/G_avg = (G.moles*size + 0) / (size+share_size) @@ -477,4 +478,4 @@ zone/proc/connected_zones() .[Z]++ else . += Z - .[Z] = 1*/ \ No newline at end of file + .[Z] = 1*/ diff --git a/code/modules/mob/living/carbon/human/life.dm b/code/modules/mob/living/carbon/human/life.dm index 402757f62ea..07df4849d87 100644 --- a/code/modules/mob/living/carbon/human/life.dm +++ b/code/modules/mob/living/carbon/human/life.dm @@ -799,6 +799,10 @@ var/adjusted_pressure = calculate_affecting_pressure(pressure) //Returns how much pressure actually affects the mob. if(adjusted_pressure > HAZARD_HIGH_PRESSURE) adjustBruteLoss( min( (adjusted_pressure / HAZARD_HIGH_PRESSURE)*PRESSURE_DAMAGE_COEFFICIENT , MAX_PRESSURE_DAMAGE) ) + else if(pressure <= 50) + var/adjusted_pressure = calculate_affecting_pressure(pressure) //Returns how much pressure actually affects the mob. + if(adjusted_pressure < 50) + adjustBruteLoss( (50 - adjusted_pressure) / 50 ) return /*