Focus forest growth on a contiguous mass

This commit is contained in:
Tangent Wantwight 2024-01-13 10:55:04 -05:00
parent a4b3564b57
commit ea89a3293c
1 changed files with 2 additions and 1 deletions

View File

@ -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);