summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
Diffstat (limited to 'play.js')
-rw-r--r--play.js11
1 files changed, 10 insertions, 1 deletions
diff --git a/play.js b/play.js
index 60c80fa..b5f9855 100644
--- a/play.js
+++ b/play.js
@@ -196,6 +196,8 @@ const C_ARMY_BACKS_REVOLUTION = 108
const C_KREMLIN_COUP = 109
const C_MALTA_SUMMIT = 110
+const EXTRA_PRUDENCE = 800
+
// END CONST }}}
const scoring_cards = [22, 23, 42, 43, 55, 95]
@@ -848,9 +850,16 @@ function on_update() {
ui.removed.appendChild(ui.cards[c])
ui.persistent.replaceChildren()
- for (let c of view.persistent_events)
+ console.log('view.persistent_events', view.persistent_events)
+ for (let c of view.persistent_events) {
if (c < 111)
ui.persistent.appendChild(ui.cards[c])
+ if (c === EXTRA_PRUDENCE) {
+ const card_e = document.createElement("div")
+ card_e.className = "card event_" + c
+ ui.persistent.appendChild(card_e)
+ }
+ }
ui.played_card.replaceChildren()
if (!view.scoring_card) {