makes chem gases fully condense if below threshold

This commit is contained in:
Putnam3145
2022-08-16 00:50:47 -07:00
parent c8a84c2172
commit d565d6a097
@@ -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)