fixed attackexecution speed bug

This commit is contained in:
evanpelle
2024-09-02 11:50:29 -07:00
parent adac26a44f
commit 23cd55a398
4 changed files with 8 additions and 11 deletions
+2 -2
View File
@@ -48,9 +48,9 @@ export class DefaultConfig implements Config {
attackTilesPerTick(attacker: Player, defender: Player | TerraNullius, numAdjacentTilesWithEnemy: number): number {
if (defender.isPlayer()) {
return within(attacker.numTilesOwned() / defender.numTilesOwned() * 2, .01, .5) * numAdjacentTilesWithEnemy * 2 / 25
return within(attacker.numTilesOwned() / defender.numTilesOwned() * 2, .01, .5) * numAdjacentTilesWithEnemy * 2 / 10
} else {
return numAdjacentTilesWithEnemy * 2 / 25
return numAdjacentTilesWithEnemy * 2 / 10
}
}