mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-19 08:14:59 +00:00
get attacks working, adjust name placement scaling factor
This commit is contained in:
@@ -218,6 +218,9 @@ export class ClientGameRunner {
|
||||
} else {
|
||||
outer_loop: for (const t of bfs(tile, and(t => !t.hasOwner() && t.terrain().isLand(), dist(tile, 200)))) {
|
||||
for (const n of t.neighbors()) {
|
||||
if (n.owner().isPlayer()) {
|
||||
console.log(`owner: ${(n.owner() as PlayerView).name()}`)
|
||||
}
|
||||
if (n.owner() == this.myPlayer) {
|
||||
this.eventBus.emit(new SendAttackIntentEvent(targetID, this.myPlayer.troops() * this.renderer.uiState.attackRatio))
|
||||
break outer_loop
|
||||
|
||||
Reference in New Issue
Block a user