From 67149e09be5311ff151189ba892056fc96c3b22f Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 20 Dec 2022 12:35:32 +0100 Subject: Fix ship counting. --- rules.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rules.js b/rules.js index 2f11eb8..13276fd 100644 --- a/rules.js +++ b/rules.js @@ -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 } -- cgit v1.2.3