diff options
author | Tor Andersson <tor@ccxvii.net> | 2022-12-20 12:35:32 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-02-18 13:02:38 +0100 |
commit | 67149e09be5311ff151189ba892056fc96c3b22f (patch) | |
tree | 030756031b7b8ea39b0d823921e68bd485c69d47 | |
parent | 7588d2fd45ec4bbd54d8bb2ed892b2f488ffe1b6 (diff) | |
download | nevsky-67149e09be5311ff151189ba892056fc96c3b22f.tar.gz |
Fix ship counting.
-rw-r--r-- | rules.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2597,7 +2597,7 @@ states.summer_crusaders = { function count_all_teutonic_ships() { let n = 0 for (let lord = first_p1_lord; lord <= last_p1_lord; ++lord) - if (is_lord_on_map()) + if (is_lord_on_map(lord)) n += count_lord_ships(lord) return n } @@ -2605,7 +2605,7 @@ function count_all_teutonic_ships() { function count_all_russian_ships() { let n = 0 for (let lord = first_p2_lord; lord <= last_p2_lord; ++lord) - if (is_lord_on_map()) + if (is_lord_on_map(lord)) n += count_lord_ships(lord) return n } |