mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-27 20:44:18 +00:00
add back large attack modifier, make it 100k
This commit is contained in:
@@ -401,16 +401,24 @@ export class DefaultConfig implements Config {
|
||||
}
|
||||
}
|
||||
|
||||
let largeModifier = 1;
|
||||
if (attacker.numTilesOwned() > 100_000) {
|
||||
largeModifier = Math.sqrt(100_000 / attacker.numTilesOwned());
|
||||
}
|
||||
|
||||
if (defender.isPlayer()) {
|
||||
return {
|
||||
attackerTroopLoss:
|
||||
within(defender.troops() / attackTroops, 0.5, 2) *
|
||||
mag *
|
||||
0.8 *
|
||||
largeModifier *
|
||||
(defender.isTraitor() ? this.traitorDefenseDebuff() : 1),
|
||||
defenderTroopLoss: defender.troops() / defender.numTilesOwned(),
|
||||
tilesPerTickUsed:
|
||||
within(defender.troops() / (5 * attackTroops), 0.2, 1.5) * speed,
|
||||
within(defender.troops() / (5 * attackTroops), 0.2, 1.5) *
|
||||
speed *
|
||||
largeModifier,
|
||||
};
|
||||
} else {
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user