mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-22 22:15:22 +00:00
add terrain to map
This commit is contained in:
@@ -80,6 +80,9 @@ export class PlayerExecution implements Execution {
|
||||
const tiles = bfs(firstTile, filter)
|
||||
|
||||
const modePlayer = this.mg.player(mode)
|
||||
if (modePlayer == null) {
|
||||
console.warn('mode player is null')
|
||||
}
|
||||
for (const tile of tiles) {
|
||||
modePlayer.conquer(tile)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user