From 2d6e4aa769d7a9b44b5c5267071f0efb2f954467 Mon Sep 17 00:00:00 2001 From: Putnam3145 Date: Tue, 26 Apr 2022 13:57:17 -0700 Subject: [PATCH] Gas addition already weights by spec heat --- code/modules/atmospherics/gasmixtures/reactions.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/atmospherics/gasmixtures/reactions.dm b/code/modules/atmospherics/gasmixtures/reactions.dm index 2a5a39fa01..d5497c1a62 100644 --- a/code/modules/atmospherics/gasmixtures/reactions.dm +++ b/code/modules/atmospherics/gasmixtures/reactions.dm @@ -786,7 +786,7 @@ for(var/g in gases) gases[g] = 10000 / gases[g] while(energy_remaining > 0) - var/G = pickweight(gases) + var/G = pick(gases) air.adjust_moles(G, max(0.1, energy_remaining / (gases[G] * new_temp * 20))) energy_remaining = initial_energy - air.thermal_energy() if(energy_remaining < 0)