From 8a32adba1fd38e9355b67b71360c53ce40563925 Mon Sep 17 00:00:00 2001 From: Dranorter Date: Wed, 6 Oct 2021 17:42:48 -0400 Subject: [PATCH] Getting the equation right --- modules/ui/burg-editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ui/burg-editor.js b/modules/ui/burg-editor.js index e77643ea..3e97b402 100644 --- a/modules/ui/burg-editor.js +++ b/modules/ui/burg-editor.js @@ -410,7 +410,7 @@ function editBurg(id) { const {cells} = pack; const {name, population, cell} = 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 hub = +cells.road[cell] > 50;