dogpile mode update

This commit is contained in:
1brucben
2025-04-26 17:46:19 +02:00
parent b0cb066e36
commit be1d12ec54
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -174,6 +174,10 @@ export class FakeHumanExecution implements Execution {
}
private maybeAttack() {
// ❗ During dogpile mode, turn off random attacks
if (this.dogpileTarget != null) {
return;
} // Skip maybeAttack entirely
const enemyborder = Array.from(this.player.borderTiles())
.flatMap((t) => this.mg.neighbors(t))
.filter(
+1 -1
View File
@@ -179,7 +179,7 @@ export class BotBehavior {
} else {
troops = within(
this.player.troops() - targetTroops,
0.05 * this.player.troops(),
0.2 * this.player.troops(),
0.4 * this.player.troops(),
);
if (troops < 1) return;