Skip to content

Commit

Permalink
Tiny fix to freon-trit burn (unitystation#10560)
Browse files Browse the repository at this point in the history
  • Loading branch information
AutumnNova authored Oct 9, 2024
1 parent 6471534 commit e1bb821
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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
{
Expand Down

0 comments on commit e1bb821

Please sign in to comment.