From e1bb821e1d4a333bb8a5aed774ee1d8e1029e2d0 Mon Sep 17 00:00:00 2001 From: Autumn <55225562+AutumnNova@users.noreply.github.com> Date: Wed, 9 Oct 2024 12:04:24 +1100 Subject: [PATCH] Tiny fix to freon-trit burn (#10560) --- .../Atmospherics/Data/Reactions/FreonFireReaction.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/UnityProject/Assets/Scripts/Tilemaps/Behaviours/Meta/Atmospherics/Data/Reactions/FreonFireReaction.cs b/UnityProject/Assets/Scripts/Tilemaps/Behaviours/Meta/Atmospherics/Data/Reactions/FreonFireReaction.cs index 2cc067c86f1..54a45a97304 100644 --- a/UnityProject/Assets/Scripts/Tilemaps/Behaviours/Meta/Atmospherics/Data/Reactions/FreonFireReaction.cs +++ b/UnityProject/Assets/Scripts/Tilemaps/Behaviours/Meta/Atmospherics/Data/Reactions/FreonFireReaction.cs @@ -19,12 +19,6 @@ public void React(GasMix gasMix, MetaDataNode node) var temperatureScale = 1f; - if (gasMix.Temperature is < AtmosDefines.FREON_TRITIUM_LOWER_TEMPERATURE - or > AtmosDefines.FREON_MAXIMUM_BURN_TEMPERATURE) - { - temperatureScale = 0; - } - var TotalMoles = gasMix.Moles; var TritiumMoles = gasMix.GetMoles(Gas.Tritium); @@ -35,6 +29,12 @@ public void React(GasMix gasMix, MetaDataNode node) HotIceCompatible = true; temperatureScale = (AtmosDefines.FREON_TRITIUM_MAXIMUM_BURN_TEMPERATURE - gasMix.Temperature) / (AtmosDefines.FREON_TRITIUM_MAXIMUM_BURN_TEMPERATURE - AtmosDefines.FREON_TRITIUM_LOWER_TEMPERATURE); + + if (gasMix.Temperature is < AtmosDefines.FREON_TRITIUM_LOWER_TEMPERATURE + or > AtmosDefines.FREON_TRITIUM_MAXIMUM_BURN_TEMPERATURE) + { + temperatureScale = 0; + } } else {