mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-28 17:17:58 +00:00
troop/worker slider shows current ratio
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user