diff --git a/island/grid.ts b/island/grid.ts index 50a5df2..4b7b916 100644 --- a/island/grid.ts +++ b/island/grid.ts @@ -147,7 +147,9 @@ export class IslandGrid { ); this.dropWithin(mountainTiles); // GENERATOR - // const erodePos = islandTiles[islands.rng() % islandTiles.length]; - // islands.data[erodePos] = Math.max(islands.data[erodePos] - 1, 0); + if (lowlandTiles2.length > 1) { + const erodePos = lowlandTiles2[this.rng() % lowlandTiles2.length]; + this.data[erodePos] = Math.max(this.data[erodePos] - 1, 0); + } } }