troop/worker slider shows current ratio

This commit is contained in:
Evan
2024-11-04 19:17:12 -08:00
parent d666a398ec
commit 7b1bab1e0f
3 changed files with 167 additions and 48 deletions
+1 -1
View File
@@ -163,7 +163,7 @@ export class DefaultConfig implements Config {
}
troopAdjustmentRate(player: Player): number {
const maxDiff = this.maxPopulation(player) / 300
const maxDiff = this.maxPopulation(player) / 1000
const target = player.population() * player.targetTroopRatio()
const diff = target - player.troops()
if (Math.abs(diff) < maxDiff) {