diff --git a/src/core/configuration/DefaultConfig.ts b/src/core/configuration/DefaultConfig.ts index 6756f21dc..7a2b86141 100644 --- a/src/core/configuration/DefaultConfig.ts +++ b/src/core/configuration/DefaultConfig.ts @@ -682,7 +682,7 @@ export class DefaultConfig implements Config { } troopAdjustmentRate(player: Player): number { - const maxDiff = this.maxPopulation(player) / 500; + const maxDiff = player.population() / 300; const target = player.population() * player.targetTroopRatio(); const diff = target - player.troops(); if (Math.abs(diff) < maxDiff) { diff --git a/src/core/execution/PlayerExecution.ts b/src/core/execution/PlayerExecution.ts index 012840b28..739003f04 100644 --- a/src/core/execution/PlayerExecution.ts +++ b/src/core/execution/PlayerExecution.ts @@ -77,10 +77,10 @@ export class PlayerExecution implements Execution { const popInc = this.config.populationIncreaseRate(this.player); this.player.addWorkers( - (popInc * this.player.workers()) / this.player.totalPopulation(), + (popInc * this.player.workers()) / this.player.population(), ); this.player.addTroops( - popInc * (1 - this.player.workers() / this.player.totalPopulation()), + popInc * (1 - this.player.workers() / this.player.population()), ); const goldFromWorkers = this.config.goldAdditionRate(this.player); this.player.addGold(goldFromWorkers);