AAAAAAAA
This commit is contained in:
@@ -5,9 +5,9 @@ using JetBrains.Annotations;
|
||||
namespace Content.Server.Atmos.Reactions;
|
||||
|
||||
[UsedImplicitly]
|
||||
public sealed class ZaukerProductionReaction : IGasReactionEffect
|
||||
public sealed partial class ZaukerProductionReaction : IGasReactionEffect
|
||||
{
|
||||
public ReactionResult React(GasMixture mixture, IGasMixtureHolder? holder, AtmosphereSystem atmosphereSystem)
|
||||
public ReactionResult React(GasMixture mixture, IGasMixtureHolder? holder, AtmosphereSystem atmosphereSystem, float heatScale)
|
||||
{
|
||||
var initialHyperNoblium = mixture.GetMoles(Gas.HyperNoblium);
|
||||
if (initialHyperNoblium >= 5.0f && mixture.Temperature > 20f)
|
||||
@@ -22,7 +22,7 @@ public sealed class ZaukerProductionReaction : IGasReactionEffect
|
||||
if (heatEfficiency <= 0 || initialHypernoblium - heatEfficiency * 0.01f < 0 || initialNitrium - heatEfficiency * 0.5f < 0)
|
||||
return ReactionResult.NoReaction;
|
||||
|
||||
var oldHeatCapacity = atmosphereSystem.GetHeatCapacity(mixture);
|
||||
var oldHeatCapacity = atmosphereSystem.GetHeatCapacity(mixture, true);
|
||||
|
||||
mixture.AdjustMoles(Gas.HyperNoblium, -heatEfficiency * 0.01f);
|
||||
mixture.AdjustMoles(Gas.Nitrium, -heatEfficiency * 0.5f);
|
||||
@@ -30,7 +30,7 @@ public sealed class ZaukerProductionReaction : IGasReactionEffect
|
||||
|
||||
var energyUsed = heatEfficiency * Atmospherics.ZaukerFormationEnergy;
|
||||
|
||||
var newHeatCapacity = atmosphereSystem.GetHeatCapacity(mixture);
|
||||
var newHeatCapacity = atmosphereSystem.GetHeatCapacity(mixture, true);
|
||||
if (newHeatCapacity > Atmospherics.MinimumHeatCapacity)
|
||||
mixture.Temperature = Math.Max((mixture.Temperature * oldHeatCapacity - energyUsed) / newHeatCapacity, Atmospherics.TCMB);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user