further calibration

This commit is contained in:
1brucben
2025-04-26 23:55:42 +02:00
parent 69d036da39
commit 7d7b19de3f
2 changed files with 7 additions and 7 deletions
+5 -5
View File
@@ -488,9 +488,9 @@ export class DefaultConfig implements Config {
(defender.isTraitor() ? this.traitorDefenseDebuff() : 1), (defender.isTraitor() ? this.traitorDefenseDebuff() : 1),
defenderTroopLoss: defenderdensity, defenderTroopLoss: defenderdensity,
tilesPerTickUsed: within( tilesPerTickUsed: within(
8.8 * defenderdensity ** 0.2 * adjustedRatio ** 0.5 * speed, 8.8 * defenderdensity ** 0.2 * adjustedRatio ** 0.4 * speed,
8, 36,
500, 36.2,
), ),
}; };
} else { } else {
@@ -577,7 +577,7 @@ export class DefaultConfig implements Config {
case Difficulty.Easy: case Difficulty.Easy:
return maxPop * 0.4; return maxPop * 0.4;
case Difficulty.Medium: case Difficulty.Medium:
return maxPop * 0.6; return maxPop * 0.7;
case Difficulty.Hard: case Difficulty.Hard:
return maxPop * 1; return maxPop * 1;
case Difficulty.Impossible: case Difficulty.Impossible:
@@ -590,7 +590,7 @@ export class DefaultConfig implements Config {
let toAdd = let toAdd =
10 + 10 +
(1200 / max + 1 / 120) * (0.8 * player.troops() + 1.2 * player.workers()); (1400 / max + 1 / 125) * (0.8 * player.troops() + 1.2 * player.workers());
const adjustedPop = const adjustedPop =
typeof player.adjustedPopulation === "function" typeof player.adjustedPopulation === "function"
? player.adjustedPopulation() ? player.adjustedPopulation()
+2 -2
View File
@@ -162,9 +162,9 @@ export class FakeHumanExecution implements Execution {
if ( if (
this.player.troops() > 100_000 && this.player.troops() > 100_000 &&
this.player.targetTroopRatio() > 0.7 this.player.targetTroopRatio() > 0.6
) { ) {
this.player.setTargetTroopRatio(0.7); this.player.setTargetTroopRatio(0.6);
} }
this.updateRelationsFromEmbargos(); this.updateRelationsFromEmbargos();