From ba1d81f883eff0a90e42dbfcb7b64ae56a3faa12 Mon Sep 17 00:00:00 2001 From: 1brucben <1benjbruce@gmail.com> Date: Thu, 29 May 2025 13:24:19 +0200 Subject: [PATCH] adjust further --- src/core/configuration/DefaultConfig.ts | 2 +- src/core/execution/PlayerExecution.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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);