diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-02-07 11:24:45 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-02-18 12:12:42 +0100 |
commit | 2121bec73387c3ccb206b28f181fe2f75d501850 (patch) | |
tree | e04d2975da6030c508f3fafe915f57cf8bd44485 | |
parent | 33c6797d9bc75cccfec15c293d0677ef91530105 (diff) | |
download | shores-of-tripoli-2121bec73387c3ccb206b28f181fe2f75d501850.tar.gz |
Fix off by one in Storms log when >2 hits.
-rw-r--r-- | rules.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |