From 2121bec73387c3ccb206b28f181fe2f75d501850 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 7 Feb 2023 11:24:45 +0100 Subject: Fix off by one in Storms log when >2 hits. --- rules.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rules.js b/rules.js index 39df702..f9e5532 100644 --- a/rules.js +++ b/rules.js @@ -2104,7 +2104,7 @@ states.storms = { if (n === 2) log("One American frigate was damaged."); else - log(n + " American frigates were damaged."); + log((n-1) + " American frigates were damaged."); for (let i = 1; i < n; ++i) { if (game.year === 1806) move_one_piece(US_FRIGATES, space, UNITED_STATES_SUPPLY); -- cgit v1.2.3