mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 12:00:44 +00:00
rebalance
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user