mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
v1.1.11
This commit is contained in:
parent
481d7da4e6
commit
8ff1fe46b8
9 changed files with 31 additions and 28 deletions
2
main.js
2
main.js
|
|
@ -1186,7 +1186,7 @@ function rankCells() {
|
|||
console.time('rankCells');
|
||||
const cells = pack.cells, f = pack.features;
|
||||
cells.s = new Int16Array(cells.i.length); // cell suitability array
|
||||
cells.pop = new Uint16Array(cells.i.length); // cell population array
|
||||
cells.pop = new Float32Array(cells.i.length); // cell population array
|
||||
|
||||
const flMean = d3.median(cells.fl.filter(f => f)), flMax = d3.max(cells.fl) + d3.max(cells.conf); // to normalize flux
|
||||
const areaMean = d3.mean(cells.area); // to adjust population by cell area
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue