From 828675f0879c381623422a8a2487509e2cea92f1 Mon Sep 17 00:00:00 2001 From: evanpelle Date: Thu, 19 Sep 2024 17:33:38 -0700 Subject: [PATCH] rebalance --- TODO.txt | 2 +- src/core/configuration/DefaultConfig.ts | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/TODO.txt b/TODO.txt index cfdd6eeb2..6a79b5726 100644 --- a/TODO.txt +++ b/TODO.txt @@ -122,8 +122,8 @@ * make alliance icon DONE 9/19/2024 * bots attack traitors DONE 9/19/2024 * BUG: alliance should stop attack DONE 9/19/2024 -* BUG: bot attacks don't stop * create event box +* BUG: bot attacks don't stop when allied ? * make fake humans easier * click alliance sends alliance request * notification for alliance request diff --git a/src/core/configuration/DefaultConfig.ts b/src/core/configuration/DefaultConfig.ts index 23d9faa11..ac5c5489f 100644 --- a/src/core/configuration/DefaultConfig.ts +++ b/src/core/configuration/DefaultConfig.ts @@ -41,15 +41,15 @@ export class DefaultConfig implements Config { let speed = 0 switch (tileToConquer.terrain()) { case TerrainType.Plains: - mag = 20 + mag = 30 speed = 5 break case TerrainType.Highland: - mag = 40 + mag = 60 speed = 10 break case TerrainType.Mountain: - mag = 60 + mag = 90 speed = 20 break } @@ -66,13 +66,13 @@ export class DefaultConfig implements Config { if (defender.isPlayer()) { return { - attackerTroopLoss: within(defender.troops() / attacker.troops(), .2, 5) * mag, + attackerTroopLoss: within(defender.troops() / attacker.troops(), .5, 2) * mag, defenderTroopLoss: defender.troops() / defender.numTilesOwned(), tilesPerTickUsed: within(defender.troops() / (attackTroops * 5), .2, 1.5) * speed } } else { return { - attackerTroopLoss: Math.max(10, mag / 1.5), + attackerTroopLoss: mag / 2, defenderTroopLoss: 0, tilesPerTickUsed: within(this.startTroops(attacker.info()) / (attackTroops * 5), .2, 3) * Math.max(10, speed / 1.5) }