chore: modularize main.js

This commit is contained in:
Azgaar 2022-07-03 15:45:51 +03:00
parent 51df2f90b0
commit e739698346
24 changed files with 1775 additions and 1706 deletions

View file

@ -114,8 +114,8 @@ window.Submap = (function () {
// Warning: addLakesInDeepDepressions can be very slow!
if (options.addLakesInDepressions) {
addLakesInDeepDepressions();
openNearSeaLakes();
Lakes.addLakesInDeepDepressions();
Lakes.openNearSeaLakes();
}
OceanLayers();
@ -214,7 +214,7 @@ window.Submap = (function () {
// biome calculation based on (resampled) grid.cells.temp and prec
// it's safe to recalculate.
stage("Regenerating Biome.");
defineBiomes();
Biomes.define();
// recalculate suitability and population
// TODO: normalize according to the base-map
rankCells();