mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-18 10:01:23 +01:00
fix: bug fixes, 3d mode controls change to MapContol
This commit is contained in:
parent
07d0729cfc
commit
34b880e10f
19 changed files with 398 additions and 182 deletions
5
main.js
5
main.js
|
|
@ -636,6 +636,7 @@ async function generate(options) {
|
|||
|
||||
Rivers.generate();
|
||||
Biomes.define();
|
||||
Features.defineGroups();
|
||||
|
||||
rankCells();
|
||||
Cultures.generate();
|
||||
|
|
@ -654,7 +655,7 @@ async function generate(options) {
|
|||
Provinces.getPoles();
|
||||
|
||||
Rivers.specify();
|
||||
Features.specify();
|
||||
Lakes.defineNames();
|
||||
|
||||
Military.generate();
|
||||
Markers.generate();
|
||||
|
|
@ -1195,7 +1196,7 @@ function rankCells() {
|
|||
if (cells.r[i]) score += scoreMap.estuary;
|
||||
const feature = features[cells.f[cells.haven[i]]];
|
||||
if (feature.type === "lake") {
|
||||
score += scoreMap[feature.water] || 0;
|
||||
score += scoreMap[feature.group] || 0;
|
||||
} else {
|
||||
score += scoreMap.ocean_coast;
|
||||
if (cells.harbor[i] === 1) score += scoreMap.save_harbor;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue