diff options
-rw-r--r-- | play.js | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -318,6 +318,12 @@ const all_electoral_colleges = [ find_city("Berlin"), ] +const all_elector_fortresses = [] +set_add(all_elector_fortresses, find_city("Trier")) +set_add(all_elector_fortresses, find_city("Mainz")) +set_add(all_elector_fortresses, find_city("Köln")) +set_add(all_elector_fortresses, find_city("Mannheim")) + const all_fortresses = [] set_add_all(all_fortresses, data.type.major_fortress) set_add_all(all_fortresses, data.type.minor_fortress) @@ -1203,6 +1209,13 @@ function count_victory_markers(pow) { for (let i = 0; i < view.victory.length; i += 2) if (view.victory[i+1] === pow) ++n + + // count retroactive markers for display (except 4 special electoral colleges) + for (let i = 0; i < view.retro.length; i += 2) + if (!set_has(all_elector_fortresses, view.retro[i])) + if (view.retro[i+1] === pow) + ++n + return n } |