Fixes bzformation. (#67602)

Webedit PR incoming!

Not sure what was going on there, but I am pretty sure they meant to used N2O moles for this instead of plasma gas datum for arithmetic.

So bzformation actually creates BZ and possibly decompose n2o instead of attempting to divide by a list then runtiming
This commit is contained in:
Pickle-Coding
2022-06-08 13:16:06 -07:00
committed by GitHub
parent f4cb0c702c
commit d73566d7c0
@@ -565,7 +565,7 @@
*Plasma acts as a catalyst on decomposition, so it doesn't get consumed in the process.
*N2O decomposes with its normal decomposition energy
*/
var/nitrous_oxide_decomposed_factor = max(4*(cached_gases[/datum/gas/plasma][MOLES]/(cached_gases[/datum/gas/plasma]+cached_gases[/datum/gas/plasma][MOLES]) - 0.75), 0)
var/nitrous_oxide_decomposed_factor = max(4 * (cached_gases[/datum/gas/plasma][MOLES] / (cached_gases[/datum/gas/nitrous_oxide][MOLES] + cached_gases[/datum/gas/plasma][MOLES]) - 0.75), 0)
if (nitrous_oxide_decomposed_factor>0)
ASSERT_GAS(/datum/gas/nitrogen, air)
ASSERT_GAS(/datum/gas/oxygen, air)