Added a lock function to burgs that will prevent them from being regenerated

This commit is contained in:
Legogizmo 2021-03-25 23:08:34 -05:00
parent c9b34866f9
commit cb3890a68c
6 changed files with 57 additions and 9 deletions

View file

@ -145,7 +145,7 @@
const cells = pack.cells, vertices = pack.vertices, features = pack.features, temp = grid.cells.temp;
for (const b of pack.burgs) {
if (!b.i) continue;
if (!b.i || b.lock) continue;
const i = b.cell;
// asign port status to some coastline burgs with temp > 0 °C