diff options
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) { |