mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-18 10:01:23 +01:00
refactor: generate burgs
This commit is contained in:
parent
cbe6da0949
commit
e62d6ec74c
13 changed files with 364 additions and 39 deletions
|
|
@ -181,7 +181,6 @@ window.BurgsAndStates = (function () {
|
|||
const specifyBurgs = function () {
|
||||
TIME && console.time("specifyBurgs");
|
||||
const cells = pack.cells,
|
||||
vertices = pack.vertices,
|
||||
features = pack.features,
|
||||
temp = grid.cells.temp;
|
||||
|
||||
|
|
@ -204,7 +203,7 @@ window.BurgsAndStates = (function () {
|
|||
|
||||
if (b.port) {
|
||||
b.population = b.population * 1.3; // increase port population
|
||||
const [x, y] = getMiddlePoint(i, haven);
|
||||
const [x, y] = getCommonEdgePoint(i, haven);
|
||||
b.x = x;
|
||||
b.y = y;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue