Jump to content

Plant Regrowth for Moon trees only grow within spring


Hornete
  • Pending
["mushtree_small"] = function()
        return TUNING.MUSHTREE_REGROWTH_TIME_MULT * ((not TheWorld.state.isspring and 0) or 1)
    end,
    ["moon_tree"] = function()
        return TUNING.MOONTREE_REGROWTH_TIME_MULT * ((not TheWorld.state.isspring and 0) or 1)
    end,

It seems the multiplier for moon tree regrowth in plantregrowth.lua uses a copy pasted version of mushtree_small, meaning the regrowth only works within spring, this is inconsistent with the desolationspawner implementation which has the regrowth multiplier depend on the moon phase instead.

local moon_tree_mult =
{
    new = 0,
    quarter = 0.5,
    half = 1.0,
    threequarter = 1.5,
    full = 2.0,
}
self:SetSpawningForType("moon_tree", "moonbutterfly_sapling", TUNING.EVERGREEN_REGROWTH.DESOLATION_RESPAWN_TIME, {"moon_tree"}, function()
    return (TUNING.MOONTREE_REGROWTH_TIME_MULT * moon_tree_mult[_worldstate.moonphase]) or 0
end)

 


Steps to Reproduce

1. See moon tree regrowth

2. Slow outside of spring




User Feedback


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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...