This commit is contained in:
BeGj
2025-03-07 16:53:10 +00:00
parent 0ddfc942a4
commit 619891741f
15 changed files with 28 additions and 22 deletions
+1 -1
View File
@@ -256,7 +256,7 @@ export class AttackExecution implements Execution {
let numOwnedByMe = this.mg
.neighbors(neighbor)
.filter((t) => this.mg.owner(t) == this._owner).length;
let dist = 0;
const dist = 0;
if (numOwnedByMe > 2) {
numOwnedByMe = 10;
}
+1 -1
View File
@@ -153,7 +153,7 @@ export class PlayerExecution implements Execution {
}
private isSurrounded(cluster: Set<TileRef>): boolean {
let enemyTiles = new Set<TileRef>();
const enemyTiles = new Set<TileRef>();
for (const tr of cluster) {
if (this.mg.isOceanShore(tr) || this.mg.isOnEdgeOfMap(tr)) {
return false;