Fix thermal regulation (#35971)
This commit is contained in:
@@ -51,6 +51,7 @@ public sealed class ThermalRegulatorSystem : EntitySystem
|
|||||||
if (!Resolve(ent, ref ent.Comp2, logMissing: false))
|
if (!Resolve(ent, ref ent.Comp2, logMissing: false))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
// TODO: Why do we have two datafields for this if they are only ever used once here?
|
||||||
var totalMetabolismTempChange = ent.Comp1.MetabolismHeat - ent.Comp1.RadiatedHeat;
|
var totalMetabolismTempChange = ent.Comp1.MetabolismHeat - ent.Comp1.RadiatedHeat;
|
||||||
|
|
||||||
// implicit heat regulation
|
// implicit heat regulation
|
||||||
@@ -74,7 +75,7 @@ public sealed class ThermalRegulatorSystem : EntitySystem
|
|||||||
|
|
||||||
// if body temperature is not within comfortable, thermal regulation
|
// if body temperature is not within comfortable, thermal regulation
|
||||||
// processes starts
|
// processes starts
|
||||||
if (tempDiff > ent.Comp1.ThermalRegulationTemperatureThreshold)
|
if (tempDiff < ent.Comp1.ThermalRegulationTemperatureThreshold)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (ent.Comp2.CurrentTemperature > ent.Comp1.NormalBodyTemperature)
|
if (ent.Comp2.CurrentTemperature > ent.Comp1.NormalBodyTemperature)
|
||||||
|
|||||||
Reference in New Issue
Block a user