mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-22 13:59:48 +00:00
dogpile mode update
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user