make manpower addition rate function of total manpower

This commit is contained in:
Evan
2024-11-03 12:38:53 -08:00
parent 7068758ae3
commit e20cd96df4
4 changed files with 16 additions and 17 deletions
+3 -1
View File
@@ -32,7 +32,9 @@ export class PlayerExecution implements Execution {
}
this.player.addManpowerReserve(this.config.manpowerAdditionRate(this.player))
this.player.addGold(this.config.goldAdditionRate(this.player))
this.player.addTroops(this.config.troopAdjustmentRate(this.player))
const adjustRate = this.config.troopAdjustmentRate(this.player)
this.player.addTroops(adjustRate)
this.player.removeManpowerReserve(adjustRate)
const alliances = Array.from(this.player.alliances())
for (const alliance of alliances) {