mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 17:51:24 +01:00
refactor: split states and burgs generators
This commit is contained in:
parent
e53c3a7773
commit
d7d79ad740
18 changed files with 445 additions and 358 deletions
12
main.js
12
main.js
|
|
@ -194,7 +194,10 @@ let options = {
|
|||
temperatureSouthPole: -15,
|
||||
stateLabelsMode: "auto",
|
||||
showBurgPreview: true,
|
||||
villageMaxPopulation: 2000
|
||||
villageMaxPopulation: 2000,
|
||||
burgs: {
|
||||
groups: Burgs.getDefaultGroups()
|
||||
}
|
||||
};
|
||||
|
||||
let mapCoordinates = {}; // map coordinates on globe
|
||||
|
|
@ -658,13 +661,14 @@ async function generate(options) {
|
|||
rankCells();
|
||||
Cultures.generate();
|
||||
Cultures.expand();
|
||||
BurgsAndStates.generate();
|
||||
Burgs.generate();
|
||||
States.generate();
|
||||
Routes.generate();
|
||||
Religions.generate();
|
||||
BurgsAndStates.defineStateForms();
|
||||
States.defineStateForms();
|
||||
Provinces.generate();
|
||||
Provinces.getPoles();
|
||||
BurgsAndStates.defineBurgFeatures();
|
||||
Burgs.specifyBurgs();
|
||||
|
||||
Rivers.specify();
|
||||
Features.specify();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue