From d91083752066b34b19a12e67200f6a0c5cf430ea Mon Sep 17 00:00:00 2001 From: evanpelle Date: Thu, 5 Sep 2024 20:10:59 -0700 Subject: [PATCH] rebalancing --- src/client/ClientGame.ts | 2 +- src/core/configuration/DefaultConfig.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/client/ClientGame.ts b/src/client/ClientGame.ts index 83f31993e..dce36923d 100644 --- a/src/client/ClientGame.ts +++ b/src/client/ClientGame.ts @@ -251,7 +251,7 @@ export class ClientGame { if (enemyShoreDists.length > 0 && bordersOcean) { enemyShoreClosest = enemyShoreDists[0].dist } - if (enemyShoreClosest < borderTileClosest) { + if (enemyShoreClosest < borderTileClosest / 2) { this.sendBoatAttackIntent(targetID, enemyShoreDists[0].tile.cell(), this.gs.config().boatAttackAmount(this.myPlayer, owner)) } else { this.sendAttackIntent(targetID, cell, this.gs.config().attackAmount(this.myPlayer, owner)) diff --git a/src/core/configuration/DefaultConfig.ts b/src/core/configuration/DefaultConfig.ts index 8938502fd..452440006 100644 --- a/src/core/configuration/DefaultConfig.ts +++ b/src/core/configuration/DefaultConfig.ts @@ -56,9 +56,9 @@ export class DefaultConfig implements Config { attackTilesPerTick(attacker: Player, defender: Player | TerraNullius, numAdjacentTilesWithEnemy: number): number { if (defender.isPlayer()) { - return within(attacker.troops() / defender.troops() * 2, .01, .5) * numAdjacentTilesWithEnemy * 2 / 10 + return within(attacker.troops() / defender.troops() * 2, .01, .5) * numAdjacentTilesWithEnemy * 2 / 5 } else { - return numAdjacentTilesWithEnemy * 2 / 10 + return numAdjacentTilesWithEnemy * 2 / 5 } }