From 38ecbb9b87970b5ef241c88b2f7298c6411037a4 Mon Sep 17 00:00:00 2001 From: Evan Date: Tue, 11 Feb 2025 20:53:31 -0800 Subject: [PATCH] give attack bonus to larger territories to speed up the end game --- src/core/configuration/DefaultConfig.ts | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/core/configuration/DefaultConfig.ts b/src/core/configuration/DefaultConfig.ts index 709917f00..39e58abbd 100644 --- a/src/core/configuration/DefaultConfig.ts +++ b/src/core/configuration/DefaultConfig.ts @@ -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 {