From 7ea0b931dd05426b9a05b14e71672fa094994b90 Mon Sep 17 00:00:00 2001 From: 1brucben <1benjbruce@gmail.com> Date: Thu, 29 May 2025 12:27:29 +0200 Subject: [PATCH] fix pop ratio for growth --- src/core/execution/PlayerExecution.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/core/execution/PlayerExecution.ts b/src/core/execution/PlayerExecution.ts index 4bf039072..012840b28 100644 --- a/src/core/execution/PlayerExecution.ts +++ b/src/core/execution/PlayerExecution.ts @@ -76,8 +76,12 @@ export class PlayerExecution implements Execution { } const popInc = this.config.populationIncreaseRate(this.player); - this.player.addWorkers(popInc * (1 - this.player.targetTroopRatio())); - this.player.addTroops(popInc * this.player.targetTroopRatio()); + this.player.addWorkers( + (popInc * this.player.workers()) / this.player.totalPopulation(), + ); + this.player.addTroops( + popInc * (1 - this.player.workers() / this.player.totalPopulation()), + ); const goldFromWorkers = this.config.goldAdditionRate(this.player); this.player.addGold(goldFromWorkers);