From eda9cf608674df2c35e8ada395bab77b453fc3b6 Mon Sep 17 00:00:00 2001 From: 1brucben <1benjbruce@gmail.com> Date: Fri, 9 May 2025 01:48:49 +0200 Subject: [PATCH] rebalance after test --- src/core/configuration/DefaultConfig.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/core/configuration/DefaultConfig.ts b/src/core/configuration/DefaultConfig.ts index d35d50dba..081d6d162 100644 --- a/src/core/configuration/DefaultConfig.ts +++ b/src/core/configuration/DefaultConfig.ts @@ -219,7 +219,7 @@ export class DefaultConfig implements Config { return 40; } defensePostDefenseBonus(): number { - return 4; + return 5; } numPlayerTeams(): number { return this._gameConfig.numPlayerTeams ?? 0; @@ -506,13 +506,13 @@ export class DefaultConfig implements Config { const attackratio = defenderTroops / attackTroops; return { attackerTroopLoss: - mag * 10 + + mag * 12 + defenderdensity * mag * (defender.isTraitor() ? this.traitorDefenseDebuff() : 1), defenderTroopLoss: defenderdensity, tilesPerTickUsed: - 25 * + 26 * within(defenderdensity, 3, 100) ** 0.2 * (10_000 / attackTroops) ** 0.1 * speed * @@ -520,9 +520,9 @@ export class DefaultConfig implements Config { }; } else { return { - attackerTroopLoss: attackerType == PlayerType.Bot ? mag * 10 : mag * 10, + attackerTroopLoss: attackerType == PlayerType.Bot ? mag * 12 : mag * 12, defenderTroopLoss: 0, - tilesPerTickUsed: 30 * speed, // * (10_000 / attackTroops) ** 0.5, + tilesPerTickUsed: 31 * speed, // * (10_000 / attackTroops) ** 0.5, }; } } @@ -580,7 +580,7 @@ export class DefaultConfig implements Config { return 50_000 + 8000 * (playerInfo?.nation?.strength ?? 1); } } - return this.infiniteTroops() ? 1_000_000 : 25_000; + return this.infiniteTroops() ? 1_000_000 : 20_000; } maxPopulation(player: Player | PlayerView): number { @@ -615,7 +615,7 @@ export class DefaultConfig implements Config { let toAdd = 10 + - (1400 / max + 1 / 125) * (0.8 * player.troops() + 1.2 * player.workers()); + (840 / max + 1 / 210) * (0.8 * player.troops() + 1.2 * player.workers()); const adjustedPop = player.adjustedPopulation(); const ratio = 1 - adjustedPop / max;