reimpl erosion
This commit is contained in:
parent
4eacd3a5aa
commit
a7e0145736
1 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue