mirror of
https://github.com/t-affeldt/climate_api.git
synced 2025-07-21 06:35:11 -04:00
Implement dynamic cloud sizes, adjust cycle lengths
This commit is contained in:
parent
47530bb07e
commit
fdc457bd09
9 changed files with 86 additions and 24 deletions
|
@ -8,7 +8,7 @@ end
|
|||
local function get_heat_calendar()
|
||||
-- European heat center in August instead of June
|
||||
local day = minetest.get_day_count()
|
||||
local progression = (day + 61) / 365
|
||||
local progression = ((day + 61) % 365) / 365
|
||||
return climate_api.utility.normalized_cycle(progression) * 0.6 + 0.7
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue