Focus forest growth on a contiguous mass
This commit is contained in:
parent
a4b3564b57
commit
ea89a3293c
1 changed files with 2 additions and 1 deletions
|
@ -147,7 +147,8 @@ class IslandGrid {
|
|||
this.dropWithin(beachTiles);
|
||||
|
||||
// expand forest
|
||||
const forestTiles = lowlandTiles1.filter((pos) => this.data[pos] == 2);
|
||||
const forestLobe = this.floodSearch(this.lobePos1, (tile) => tile > 1);
|
||||
const forestTiles = forestLobe.filter((pos) => this.data[pos] == 2);
|
||||
this.dropWithin(forestTiles);
|
||||
this.dropWithin(forestTiles);
|
||||
this.dropWithin(forestTiles);
|
||||
|
|
Loading…
Add table
Reference in a new issue