This commit is contained in:
Azgaar 2019-09-16 21:53:20 +03:00
parent ed720300ff
commit f5bc33b171
7 changed files with 110 additions and 5 deletions

View file

@ -157,7 +157,7 @@
if (b.capital) b.population = rn(b.population * 1.3, 3); // increase capital population
if (port) {
b.population *= b.population * 1.3; // increase port population
b.population = b.population * 1.3; // increase port population
const e = cells.v[i].filter(v => vertices.c[v].some(c => c === cells.haven[i])); // vertices of common edge
b.x = rn((vertices.p[e[0]][0] + vertices.p[e[1]][0]) / 2, 2);
b.y = rn((vertices.p[e[0]][1] + vertices.p[e[1]][1]) / 2, 2);