From d565d6a097333204574af74a6f3d7c46386fb56c Mon Sep 17 00:00:00 2001 From: Putnam3145 Date: Tue, 16 Aug 2022 00:50:47 -0700 Subject: [PATCH] makes chem gases fully condense if below threshold --- code/modules/atmospherics/gasmixtures/reactions.dm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/modules/atmospherics/gasmixtures/reactions.dm b/code/modules/atmospherics/gasmixtures/reactions.dm index b1d7547f17..39178d5965 100644 --- a/code/modules/atmospherics/gasmixtures/reactions.dm +++ b/code/modules/atmospherics/gasmixtures/reactions.dm @@ -101,6 +101,9 @@ var/G = condensing_reagent.get_gas() var/amt = air.get_moles(G) air.adjust_moles(G, -min(initial(condensing_reagent.condensation_amount), amt)) + if(air.get_moles(G) < MOLES_GAS_VISIBLE) + amt += air.get_moles(G) + air.set_moles(G, 0.0) reagents_holder.add_reagent(condensing_reagent.type, amt) . = REACTING for(var/atom/movable/AM in location)