If winter is set as the starting season, and its length is set to default, the season changes on day 21 instead of 16. Any other season length besides default in the world options don't have the issue. After a full year cycle, winter's length returns to 15 days. If summer is set as the starting season, it ends on day 16 as expected.
scripts\map\forest_map.lua
local function seasonfn(friendly, winter)
return function(season)
local totaldaysinseason
local remainingdaysinseason
if friendly then
totaldaysinseason = TUNING.SEASON_LENGTH_FRIENDLY_DEFAULT*2
remainingdaysinseason = TUNING.SEASON_LENGTH_FRIENDLY_DEFAULT
else
totaldaysinseason = TUNING.SEASON_LENGTH_HARSH_DEFAULT
remainingdaysinseason = TUNING.SEASON_LENGTH_HARSH_DEFAULT
end
local seasons = {
season = season,
totaldaysinseason = totaldaysinseason,
elapseddaysinseason = 0,
remainingdaysinseason = remainingdaysinseason,
}
return {seasons = seasons, weather = winter and {snowlevel = 1} or nil}
end
end
local SEASONS = {
["autumn"] = seasonfn(true),
["winter"] = seasonfn(true, true),
["spring"] = seasonfn(true),
["summer"] = seasonfn(false),
}
In SEASONS ["winter"] should probably be seasonfn(false, true)
Steps to Reproduce
Create a new world with winter set as the starting season, and winter's length set to default.
- 2
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