Improve calculation performance, write helpful README

This commit is contained in:
Till Affeldt
2020-04-25 15:49:53 +02:00
parent 1057342ac6
commit bff54bfb74
8 changed files with 133 additions and 48 deletions

View File

@ -33,6 +33,10 @@ function api.set_effect_cycle(name, cycle)
climate_mod.cycles[name].timespan = cycle
end
function api.register_global_influence(name, func)
climate_mod.global_influences[name] = func
end
function api.register_influence(name, func)
climate_mod.influences[name] = func
end