diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-11-01 18:24:18 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-11-01 18:24:18 +0100 |
commit | 9a4df51ac629d543272fb63ff7ae5fb13602a82b (patch) | |
tree | 3da398b016ca60deeabcd95bb1f102619ff9fad5 | |
parent | 07247ec358141fc38e3c80cc5657c734b081bde9 (diff) | |
download | maria-9a4df51ac629d543272fb63ff7ae5fb13602a82b.tar.gz |
Show correct political card backs!
-rw-r--r-- | rules.js | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -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 } |