Jump to content

Refrigerant circuit lowers mintemp instead of maxtemp


Crestwave
  • Fixed

The thermal circuit increases your mintemp to 0, preventing you from freezing:
 

local function heat_activate(inst, wx)
    -- A higher mintemp means that it's harder to freeze.
    wx.components.temperature.mintemp = wx.components.temperature.mintemp + TUNING.WX78_MINTEMPCHANGEPERMODULE

    wx.components.moisture.maxDryingRate = wx.components.moisture.maxDryingRate + EXTRA_DRYRATE
    wx.components.moisture.baseDryingRate = wx.components.moisture.baseDryingRate + EXTRA_DRYRATE

    if wx.AddTemperatureModuleLeaning ~= nil then
        wx:AddTemperatureModuleLeaning(1)
    end
end


However, the refrigerant circuit lowers your mintemp to -40, which does nothing except allow you to freeze to lower temperature:
 

local function cold_activate(inst, wx)
    -- A lower mintemp means it's harder to overheat.
    wx.components.temperature.mintemp = wx.components.temperature.mintemp - TUNING.WX78_MINTEMPCHANGEPERMODULE

    if wx.AddTemperatureModuleLeaning ~= nil then
        wx:AddTemperatureModuleLeaning(-1)
    end
end


This is fixed by lowering maxtemp instead of mintemp


Steps to Reproduce

Check wx78_moduledefs.lua

  • Like 2



User Feedback


A developer has marked this issue as fixed. This means that the issue has been addressed in the current development build and will likely be in the next update.


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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...