fixed attack speed up bug

This commit is contained in:
evanpelle
2024-09-06 15:33:25 -07:00
parent d910837520
commit 31a7ef393d
7 changed files with 27 additions and 18 deletions
+4 -4
View File
@@ -41,8 +41,8 @@ export class DefaultConfig implements Config {
}
if (defender.isPlayer()) {
return {
attackerTroopLoss: within(defender.troops() / 2000 + mag, 1, 10),
defenderTroopLoss: Math.min(attacker.troops() / 3000, 5),
attackerTroopLoss: within(defender.troops() / attacker.troops() / 10 * mag, 1, 100),
defenderTroopLoss: within(attacker.troops() / defender.troops() / 10, 1, 100),
tilesPerTickUsed: mag + 1
}
} else {
@@ -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 / 5
return within(attacker.troops() / defender.troops() * 2, .01, .5) * numAdjacentTilesWithEnemy * 3
} else {
return numAdjacentTilesWithEnemy * 2 / 5
return numAdjacentTilesWithEnemy * 2
}
}
+1 -1
View File
@@ -30,7 +30,7 @@ export const devConfig = new class extends DefaultConfig {
// if (player.isBot()) {
// return 1000
// } else {
// return 10000
// return 1000000
// }
// }
}