I read through some of the code and found it seems to be from this method in the StateMachine's code:
public void SapHeatFromWater(float dt)
{
float kilowatts = smi.master.waterCoolingRate * dt / smi.master.waterStorage.items.Count;
foreach (GameObject gameObject in this.smi.master.waterStorage.items)
{
GameUtil.DeltaThermalEnergy(gameObject.GetComponent(), -kilowatts, smi.master.minimumWaterTemperature);
GameUtil.DeltaThermalEnergy(GetComponent(), kilowatts, GetComponent().Element.highTemp);
}
}
This method attempts to decrease the temperature of the contents in the storage (IE the stored Water/Bleachstone) and then to increase the temperature of the building. Because of the way the method "DeltaThermalEntergy()" works "SapHeatFromWater()" won't always transfer the same heat to the building that is (or isn't) removed from stored items.
The resultant temperature for stored items is clamped to not go below 37.7C, yet
The resultant temperature for the building is clamped at the building's construction element's high-transition-temp.
While low-temp water will trigger a state change that causes the water contents to drain, if the water is blocked from flowing out the above methods will eventually just be heating the building while removing nothing from the stored items.
Steps to Reproduce
1. Build Hot Tub.
2. Power it, plumb it, and fill it with 100KG (or less if you want) of water. The temperature mostly doesn't matter so long as you can trap some water in the storage before it drains.
3. Watch as every 4000ms (4Sec) the temp pulses up with no power used and (if it's at 37.7C or less) the water doesn't lose any temperature. In fact, because the Hot Tub storage isn't insulated, the water can actually gain some temperature from the building if it's below 37.7C.
1. Build Hot Tub.
2. Power it, plumb it, and fill it with 100KG (or less if you want) of water. The temperature mostly doesn't matter so long as you can trap some water in the storage before it drains.
3. Watch as every 4000ms (4Sec) the temp pulses up with no power used and (if it's at 37.7C or less) the water doesn't lose any temperature. In fact, because the Hot Tub storage isn't insulated, the water can actually gain some temperature from the building if it's below 37.7C.
There are no comments to display.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now