summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
Diffstat (limited to 'rules.js')
-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
}