v1.5.87 - lakes editor rework

This commit is contained in:
Azgaar 2021-03-02 03:28:08 +03:00
parent 5f5a67d436
commit 124c7f3448
7 changed files with 118 additions and 36 deletions

View file

@ -351,7 +351,6 @@ function editHeightmap() {
if (!b.i || b.removed) continue;
b.cell = findBurgCell(b.x, b.y);
b.feature = pack.cells.f[b.cell];
//if (b.port) b.port = pack.cells.f[pack.cells.haven[b.cell]]; // water body id
pack.cells.burg[b.cell] = b.i;
if (!b.capital && pack.cells.h[b.cell] < 20) removeBurg(b.i);
@ -383,7 +382,10 @@ function editHeightmap() {
drawStates();
drawBorders();
if (changeHeights.checked) Rivers.specify();
if (changeHeights.checked) {
Rivers.specify();
Lakes.generateName();
}
// restore zones from grid
zones.selectAll("g").each(function() {