Cold-Only Dormancy

SCREENSHOTS
Downloaded 0 times 8 Thanks 0 Favourited 255 Views
 Say Thanks!
For a rather long time my tropical climate worlds have been subsisting on two-season years, because their plants would otherwise go dormant in the winter when they should be available year-round. Tuning doesn't completely resolve this... so with some help and various tutorials, I've made my very first script mod!!

This is actually a combo of a retuned <b>Plant_0xd2daa8b8e789f61a</b> XML and a custom script, and will conflict with any mod modifying the same XML.

(It does require Seasons, as otherwise you won't have temperature or dormancy at all. XD)

The XML modifies kLeavesCoverageThreshold to -1 so that tree leaf coverage (which is based on the seasons) never naturally results in dormancy, only from frosty temperature. The custom script runs an hourly check for temperature and then matches leaf coverage relatively to frost level, because trees will keep changing state if the temperature tells them to go dormant while their leaf coverage says otherwise.

Please note that plants will take time to change state, depending on where their frost level is at. In my testing it was 1-2 days to start/stop dormancy, but your plant may be more or less stubborn.

I also noticed that the hourly checks gave slight lag every hour when running on x3 speed, but this should feel negligible in most gameplay.

Credits:
wexxamsims, for providing a code snippet and helping me understand how the game addresses dormancy!
MTS, for their scripting tutorials!
Advertisement:
More downloads by Rossehera: See more