summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-02-07 11:24:45 +0100
committerTor Andersson <tor@ccxvii.net>2023-02-18 12:12:42 +0100
commit2121bec73387c3ccb206b28f181fe2f75d501850 (patch)
treee04d2975da6030c508f3fafe915f57cf8bd44485
parent33c6797d9bc75cccfec15c293d0677ef91530105 (diff)
downloadshores-of-tripoli-2121bec73387c3ccb206b28f181fe2f75d501850.tar.gz
Fix off by one in Storms log when >2 hits.
-rw-r--r--rules.js2
1 files changed, 1 insertions, 1 deletions
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);