mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-18 02:01:22 +01:00
chore: modularize main.js
This commit is contained in:
parent
51df2f90b0
commit
e739698346
24 changed files with 1775 additions and 1706 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue