local savedRain = SandboxVars.Rain or 3

local function updateRain()
    local month = getGameTime():getMonth()
    local isWinter = (month == 10 or month == 11 or month == 0 or month == 1)

    if isWinter then
        SandboxVars.Rain = 4
    else
        SandboxVars.Rain = savedRain
    end
end

Events.OnGameStart.Add(updateRain)
Events.EveryDays.Add(updateRain)
