mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-20 04:20:05 +00:00
put methods onto terraintile
This commit is contained in:
@@ -30,7 +30,7 @@ export class DefensePostExecution implements Execution {
|
||||
}
|
||||
this.post = this.player.buildUnit(UnitType.DefensePost, 0, spawnTile)
|
||||
bfs(spawnTile, dist(spawnTile, this.mg.config().defensePostRange())).forEach(t => {
|
||||
if (t.isLand()) {
|
||||
if (t.terrain().isLand()) {
|
||||
this.defenseBonuses.push(this.mg.addTileDefenseBonus(t, this.post, this.mg.config().defensePostDefenseBonus()))
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user