mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-01 05:13:24 +00:00
fix pop ratio for growth
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user