From be1d12ec549cc83851ad8a596a13b089cbdd6055 Mon Sep 17 00:00:00 2001 From: 1brucben <1benjbruce@gmail.com> Date: Sat, 26 Apr 2025 17:46:19 +0200 Subject: [PATCH] dogpile mode update --- src/core/execution/FakeHumanExecution.ts | 4 ++++ src/core/execution/utils/BotBehavior.ts | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/core/execution/FakeHumanExecution.ts b/src/core/execution/FakeHumanExecution.ts index e529c29d6..7a9cfda16 100644 --- a/src/core/execution/FakeHumanExecution.ts +++ b/src/core/execution/FakeHumanExecution.ts @@ -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( diff --git a/src/core/execution/utils/BotBehavior.ts b/src/core/execution/utils/BotBehavior.ts index fa9447dbd..67a61b4d3 100644 --- a/src/core/execution/utils/BotBehavior.ts +++ b/src/core/execution/utils/BotBehavior.ts @@ -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;