rebalance

This commit is contained in:
evanpelle
2024-09-19 16:52:03 -07:00
parent f2d1eb8e21
commit 9c51bf8822
2 changed files with 11 additions and 10 deletions
+2 -1
View File
@@ -121,7 +121,8 @@
* add traitor icon DONE 9/18/2024
* make alliance icon DONE 9/19/2024
* bots attack traitors DONE 9/19/2024
* BUG: alliance should stop attack
* BUG: alliance should stop attack DONE 9/19/2024
* BUG: bot attacks don't stop
* create event box
* make fake humans easier
* click alliance sends alliance request
+9 -9
View File
@@ -41,19 +41,19 @@ export class DefaultConfig implements Config {
let speed = 0
switch (tileToConquer.terrain()) {
case TerrainType.Plains:
mag = 10
speed = 10
mag = 20
speed = 5
break
case TerrainType.Highland:
mag = 20
speed = 20
mag = 40
speed = 10
break
case TerrainType.Mountain:
mag = 40
speed = 40
mag = 60
speed = 20
break
}
speed = mag
// speed = mag
if (attacker.isPlayer() && defender.isPlayer()) {
if (attacker.type() == PlayerType.Bot && (defender.type() == PlayerType.FakeHuman || defender.type() == PlayerType.Human)) {
@@ -66,9 +66,9 @@ export class DefaultConfig implements Config {
if (defender.isPlayer()) {
return {
attackerTroopLoss: within(defender.troops() / attacker.troops() * mag, 1, 1000),
attackerTroopLoss: within(defender.troops() / attacker.troops(), .2, 5) * mag,
defenderTroopLoss: defender.troops() / defender.numTilesOwned(),
tilesPerTickUsed: within(defender.troops() / (attackTroops * 5), .2, 3) * speed
tilesPerTickUsed: within(defender.troops() / (attackTroops * 5), .2, 1.5) * speed
}
} else {
return {