give attack bonus to larger territories to speed up the end game

This commit is contained in:
Evan
2025-02-11 20:53:31 -08:00
parent c7847e4e44
commit 38ecbb9b87
+13 -2
View File
@@ -292,13 +292,24 @@ export class DefaultConfig implements Config {
}
}
let largeTerritoryBonus = 1;
if (attacker.numTilesOwned() > 100_000) {
// Speed up the late game
largeTerritoryBonus = 100_000 / attacker.numTilesOwned();
}
if (defender.isPlayer()) {
return {
attackerTroopLoss:
within(defender.troops() / (attackTroops * 0.5), 0.25, 4) * mag * 0.5,
within(defender.troops() / (attackTroops * 0.5), 0.25, 4) *
mag *
0.5 *
largeTerritoryBonus,
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 *
largeTerritoryBonus,
};
} else {
return {