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 } }