rebalance

This commit is contained in:
evanpelle
2024-09-19 17:33:38 -07:00
parent 9c51bf8822
commit 828675f087
2 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -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
+5 -5
View File
@@ -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)
}