mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 11:40:42 +00:00
change adjustment rate
This commit is contained in:
@@ -683,8 +683,8 @@ export class DefaultConfig implements Config {
|
||||
|
||||
troopAdjustmentRate(player: Player): number {
|
||||
const maxDiff = this.maxPopulation(player) / 500;
|
||||
const target = player.population() * player.targetTroopRatio();
|
||||
const diff = target - player.troops();
|
||||
const target = player.totalPopulation() * player.targetTroopRatio();
|
||||
const diff = target - (player.totalPopulation() - player.workers());
|
||||
if (Math.abs(diff) < maxDiff) {
|
||||
return diff;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user