Jump to content

Unplugging the Processing Circuit increase max sanity instead


lattematcha
  • Fixed

I guess it is the cause?

In wx78_moduledefs.lua

local function maxsanity1_activate(inst, wx)
    if wx.components.sanity ~= nil then
        local current_sanity_percent = wx.components.sanity:GetPercent()
        wx.components.sanity:SetMax(wx.components.sanity.max + TUNING.WX78_MAXSANITY1_BOOST)
        wx.components.sanity:SetPercent(current_sanity_percent, false)
    end
end

local function maxsanity1_deactivate(inst, wx)
    if wx.components.sanity ~= nil then
        local current_sanity_percent = wx.components.sanity:GetPercent()
        wx.components.sanity:SetMax(wx.components.sanity.max + TUNING.WX78_MAXSANITY1_BOOST)
        wx.components.sanity:SetPercent(current_sanity_percent, false)
    end
end


Steps to Reproduce

 Plug in some Processing Circuit then unplug them.




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...