mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-29 16:18:01 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user