1 parent 1a0ced6 commit f48c813Copy full SHA for f48c813
1 file changed
src/core/execution/nation/NationAllianceBehavior.ts
@@ -143,10 +143,16 @@ export class NationAllianceBehavior {
143
return false;
144
}
145
146
- const totalPlayers = this.game.players().length;
+ const totalPlayers = this.game
147
+ .players()
148
+ .filter((p) => p.type() !== PlayerType.Bot).length;
149
const otherPlayerAlliances = otherPlayer.alliances().length;
150
- return otherPlayerAlliances >= totalPlayers * 0.5;
151
+ if (difficulty !== Difficulty.Hard) {
152
+ return otherPlayerAlliances >= totalPlayers * 0.5;
153
+ } else {
154
+ return otherPlayerAlliances >= totalPlayers * 0.25;
155
+ }
156
157
158
private isConfused(): boolean {
0 commit comments