From 68e3c332485a71bc0b1875f329cde298d8545014 Mon Sep 17 00:00:00 2001 From: Putnam3145 Date: Mon, 25 Apr 2022 21:52:22 -0700 Subject: [PATCH] Make the sanity check more sane --- code/datums/atmosphere/planetary.dm | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/code/datums/atmosphere/planetary.dm b/code/datums/atmosphere/planetary.dm index 50cb73262a..efa57b4e5f 100644 --- a/code/datums/atmosphere/planetary.dm +++ b/code/datums/atmosphere/planetary.dm @@ -41,10 +41,11 @@ return ..() /datum/atmosphere/lavaland/check_for_sanity(datum/gas_mixture/mix) - var/datum/breathing_class/o2_class = GLOB.gas_data.breathing_classes[BREATH_OXY] - while(o2_class.get_effective_pp(mix) < 10) - mix.adjust_moles(GAS_CO2, -0.5) - mix.adjust_moles(GAS_O2, 0.5) + if(mix.get_moles(GAS_METHANE) < 0.1) + var/datum/breathing_class/o2_class = GLOB.gas_data.breathing_classes[BREATH_OXY] + while(o2_class.get_effective_pp(mix) < 10) + mix.adjust_moles(GAS_CO2, -0.5) + mix.adjust_moles(GAS_O2, 0.5) /datum/atmosphere/icemoon id = ICEMOON_DEFAULT_ATMOS