diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-10-23 09:03:57 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-10-23 09:03:57 +0200 |
commit | dbd210967deeccc035b5b1ac713917ab37a9a08a (patch) | |
tree | 77ae2f725a26995b12510d6a88fbcb5b84699104 /play.js | |
parent | 1670c2a19ab91d6e5f30080a469cf5c55aac902b (diff) | |
download | maria-dbd210967deeccc035b5b1ac713917ab37a9a08a.tar.gz |
renumber political cards to start at 0
Diffstat (limited to 'play.js')
-rw-r--r-- | play.js | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -67,7 +67,7 @@ const HEARTS = 2 const DIAMONDS = 3 const RESERVE = 4 -const IMPERIAL_ELECTION = 25 +const IMPERIAL_ELECTION = 24 const ELIMINATED = data.cities.name.length @@ -626,7 +626,7 @@ function on_init() { ui.italy.className = "marker political_marker_italy" ui.political = [] - for (let pc = 1; pc <= 25; ++pc) + for (let pc = 0; pc < 25; ++pc) ui.political[pc] = make_political_card(pc) ui.political_back = [ @@ -1092,9 +1092,9 @@ function on_update() { for (let e of ui.political_back[view.pol_deck]) ui.pc_deck.appendChild(e) if (view.flags & F_IMPERIAL_ELECTION) - ui.pc_deck.appendChild(ui.political[25]) + ui.pc_deck.appendChild(ui.political[24]) - for (let pc = 1; pc <= 25; ++pc) + for (let pc = 0; pc < 25; ++pc) ui.political[pc].classList.toggle("selected", pc === view.pc) for (let pow of all_major_powers) { |