From 7d7b19de3f67a1d6dbb6bc1301f2f3f9de704fce Mon Sep 17 00:00:00 2001 From: 1brucben <1benjbruce@gmail.com> Date: Sat, 26 Apr 2025 23:55:42 +0200 Subject: [PATCH] further calibration --- src/core/configuration/DefaultConfig.ts | 10 +++++----- src/core/execution/FakeHumanExecution.ts | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/core/configuration/DefaultConfig.ts b/src/core/configuration/DefaultConfig.ts index db625feab..5ca89a734 100644 --- a/src/core/configuration/DefaultConfig.ts +++ b/src/core/configuration/DefaultConfig.ts @@ -488,9 +488,9 @@ export class DefaultConfig implements Config { (defender.isTraitor() ? this.traitorDefenseDebuff() : 1), defenderTroopLoss: defenderdensity, tilesPerTickUsed: within( - 8.8 * defenderdensity ** 0.2 * adjustedRatio ** 0.5 * speed, - 8, - 500, + 8.8 * defenderdensity ** 0.2 * adjustedRatio ** 0.4 * speed, + 36, + 36.2, ), }; } else { @@ -577,7 +577,7 @@ export class DefaultConfig implements Config { case Difficulty.Easy: return maxPop * 0.4; case Difficulty.Medium: - return maxPop * 0.6; + return maxPop * 0.7; case Difficulty.Hard: return maxPop * 1; case Difficulty.Impossible: @@ -590,7 +590,7 @@ export class DefaultConfig implements Config { let toAdd = 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 = typeof player.adjustedPopulation === "function" ? player.adjustedPopulation() diff --git a/src/core/execution/FakeHumanExecution.ts b/src/core/execution/FakeHumanExecution.ts index bfa2e2f2c..ab9414544 100644 --- a/src/core/execution/FakeHumanExecution.ts +++ b/src/core/execution/FakeHumanExecution.ts @@ -162,9 +162,9 @@ export class FakeHumanExecution implements Execution { if ( 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();