summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cards.js2
-rw-r--r--play.js8
-rw-r--r--rules.js10
3 files changed, 10 insertions, 10 deletions
diff --git a/cards.js b/cards.js
index 1d029cb..5c45858 100644
--- a/cards.js
+++ b/cards.js
@@ -1,6 +1,6 @@
"use strict"
-var political_cards = [ { title: null, powers: [], flavor: null, effects: [] } ]
+var political_cards = []
;(function () {
diff --git a/play.js b/play.js
index 7b69656..e58e027 100644
--- a/play.js
+++ b/play.js
@@ -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) {
diff --git a/rules.js b/rules.js
index 5ee586f..5df7f6a 100644
--- a/rules.js
+++ b/rules.js
@@ -99,7 +99,7 @@ const HEARTS = 2
const DIAMONDS = 3
const RESERVE = 4
-const IMPERIAL_ELECTION = 25
+const IMPERIAL_ELECTION = 24
const ELIMINATED = data.cities.name.length
@@ -3826,10 +3826,10 @@ const setup_piece_position = [
]
function make_political_deck() {
- let deck41 = [ 1, 2, 3, 4, 5, 6 ]
- let deck42 = [ 7, 8, 9, 10, 11, 12, 25 ]
- let deck43 = [ 13, 14, 15, 16, 17, 18 ]
- let deck44 = [ 19, 20, 21, 22, 23, 24 ]
+ let deck41 = [ 0, 1, 2, 3, 4, 5 ]
+ let deck42 = [ 6, 7, 8, 9, 10, 11, 25 ]
+ let deck43 = [ 12, 13, 14, 15, 16, 17 ]
+ let deck44 = [ 18, 19, 20, 21, 22, 23 ]
shuffle_bigint(deck41)
shuffle_bigint(deck42)
shuffle_bigint(deck43)