From 9a4df51ac629d543272fb63ff7ae5fb13602a82b Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 1 Nov 2024 18:24:18 +0100 Subject: Show correct political card backs! --- rules.js | 8 ++------ 1 file 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 } -- cgit v1.2.3