change adjustment rate

This commit is contained in:
1brucben
2025-05-29 12:33:28 +02:00
parent 7ea0b931dd
commit 158000cb79
+2 -2
View File
@@ -683,8 +683,8 @@ export class DefaultConfig implements Config {
troopAdjustmentRate(player: Player): number {
const maxDiff = this.maxPopulation(player) / 500;
const target = player.population() * player.targetTroopRatio();
const diff = target - player.troops();
const target = player.totalPopulation() * player.targetTroopRatio();
const diff = target - (player.totalPopulation() - player.workers());
if (Math.abs(diff) < maxDiff) {
return diff;
}