From c4aaa619af64e472990e811f5ab151a9d8cd7bcb Mon Sep 17 00:00:00 2001 From: Evan Date: Tue, 18 Feb 2025 19:59:06 -0800 Subject: [PATCH] have nukes cause more damage --- src/core/execution/NukeExecution.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/core/execution/NukeExecution.ts b/src/core/execution/NukeExecution.ts index 2ce6200b5..5f2906120 100644 --- a/src/core/execution/NukeExecution.ts +++ b/src/core/execution/NukeExecution.ts @@ -126,18 +126,13 @@ export class NukeExecution implements Execution { return (d <= magnitude.inner || rand.chance(2)) && d <= magnitude.outer; }); - const ratio = Object.fromEntries( - this.mg - .players() - .map((p) => [p.id(), (p.troops() + p.workers()) / p.numTilesOwned()]), - ); const attacked = new Map(); for (const tile of toDestroy) { const owner = this.mg.owner(tile); if (owner.isPlayer()) { const mp = this.mg.player(owner.id()); mp.relinquish(tile); - mp.removeTroops(2 * ratio[mp.id()]); + mp.removeTroops((5 * mp.population()) / mp.numTilesOwned()); if (!attacked.has(mp)) { attacked.set(mp, 0); }