diff options
author | Tor Andersson <tor@ccxvii.net> | 2022-01-24 22:42:34 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-02-18 12:12:42 +0100 |
commit | 4b4473049cd996f0c901002bd041d75fae4dac36 (patch) | |
tree | e0be81c3483e4b707081427a1b7154c3f1a9ca3b | |
parent | d1dd9316d41cf86ccf4739355d88afd10ad27e05 (diff) | |
download | shores-of-tripoli-4b4473049cd996f0c901002bd041d75fae4dac36.tar.gz |
Count at most 4 sunk frigates for Tripolitan score.
-rw-r--r-- | rules.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2923,7 +2923,7 @@ exports.is_checkpoint = (a, b) => a.season !== b.season; exports.view = function(state, current) { game = state; - let tr_score = count_american_frigates(TRIPOLITAN_SUPPLY) * 3 + game.tr.gold; + let tr_score = Math.min(count_american_frigates(TRIPOLITAN_SUPPLY), 4) * 3 + game.tr.gold; let view = { log: game.log, |