reduce pop increase rate

This commit is contained in:
evanpelle
2025-06-11 10:06:17 -07:00
parent 7d24735380
commit 71bf999987
2 changed files with 9 additions and 2 deletions
+1
View File
@@ -136,6 +136,7 @@ export interface Config {
SAMCooldown(): number;
SiloCooldown(): number;
defensePostDefenseBonus(): number;
defensePostSpeedBonus(): number;
falloutDefenseModifier(percentOfFallout: number): number;
difficultyModifier(difficulty: Difficulty): number;
warshipPatrolRange(): number;
+8 -2
View File
@@ -263,9 +263,15 @@ export class DefaultConfig implements Config {
defensePostRange(): number {
return 30;
}
defensePostDefenseBonus(): number {
return 5;
}
defensePostSpeedBonus(): number {
return 2;
}
playerTeams(): number | typeof Duos {
return this._gameConfig.playerTeams ?? 0;
}
@@ -541,7 +547,7 @@ export class DefaultConfig implements Config {
)) {
if (dp.unit.owner() === defender) {
mag *= this.defensePostDefenseBonus();
speed *= this.defensePostDefenseBonus();
speed *= this.defensePostSpeedBonus();
break;
}
}
@@ -721,7 +727,7 @@ export class DefaultConfig implements Config {
populationIncreaseRate(player: Player): number {
const max = this.maxPopulation(player);
let toAdd = 10 + Math.pow(player.population(), 0.73) / 4;
let toAdd = 10 + Math.pow(player.population(), 0.7) / 4;
const ratio = 1 - player.population() / max;
toAdd *= ratio;