summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-11-01 18:24:18 +0100
committerTor Andersson <tor@ccxvii.net>2024-11-01 18:24:18 +0100
commit9a4df51ac629d543272fb63ff7ae5fb13602a82b (patch)
tree3da398b016ca60deeabcd95bb1f102619ff9fad5
parent07247ec358141fc38e3c80cc5657c734b081bde9 (diff)
downloadmaria-9a4df51ac629d543272fb63ff7ae5fb13602a82b.tar.gz
Show correct political card backs!
-rw-r--r--rules.js8
1 files changed, 2 insertions, 6 deletions
diff --git a/rules.js b/rules.js
index 596ebba..19fc50d 100644
--- a/rules.js
+++ b/rules.js
@@ -6140,12 +6140,8 @@ function end_setup() {
/* VIEW */
function mask_pol_deck() {
- if (game.pol_deck.length > 0) {
- let top = game.pol_deck[game.pol_deck.length - 1]
- if (top === IMPERIAL_ELECTION)
- return 2
- return 1 + ((top-1) / 6 | 0)
- }
+ if (game.pol_deck.length > 0)
+ return political_cards[game.pol_deck[game.pol_deck.length - 1]].year - 1740
return 0
}