mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-23 12:31:24 +01:00
Getting the equation right
This commit is contained in:
parent
8538bb3e44
commit
8a32adba1f
1 changed files with 1 additions and 1 deletions
|
|
@ -410,7 +410,7 @@ function editBurg(id) {
|
||||||
const {cells} = pack;
|
const {cells} = pack;
|
||||||
const {name, population, cell} = burg;
|
const {name, population, cell} = burg;
|
||||||
const burgSeed = getBurgSeed(burg);
|
const burgSeed = getBurgSeed(burg);
|
||||||
const size = Math.max(Math.min(Math.ceil(2.13*Math.pow(burg.population * populationRate)), 100), 6);
|
const size = Math.max(Math.min(Math.ceil(2.13*Math.pow(population * populationRate/urbanDensity,0.385)), 100), 6);
|
||||||
const people = rn(population * populationRate * urbanization);
|
const people = rn(population * populationRate * urbanization);
|
||||||
|
|
||||||
const hub = +cells.road[cell] > 50;
|
const hub = +cells.road[cell] > 50;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue