Gas addition already weights by spec heat

This commit is contained in:
Putnam3145
2022-04-26 13:57:17 -07:00
parent b5ce67ce55
commit 2d6e4aa769
@@ -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)