summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriainp5 <iain.pearce.ip@gmail.com>2025-01-02 09:43:16 +0000
committeriainp5 <iain.pearce.ip@gmail.com>2025-01-02 09:43:16 +0000
commite7f7b67b3b349ed88d00b1a21212b8adbb8bd750 (patch)
treeab5b0c094e4bd041f32495fc57abc19d263b3fc6
parent72d023997c4dfcbd9593474b508a00f449c2c2d4 (diff)
download1989-dawn-of-freedom-e7f7b67b3b349ed88d00b1a21212b8adbb8bd750.tar.gz
Add vm_event to played_card panel
-rw-r--r--play.js2
-rw-r--r--rules.js1
2 files changed, 3 insertions, 0 deletions
diff --git a/play.js b/play.js
index 3bc336f..2111f0c 100644
--- a/play.js
+++ b/play.js
@@ -892,6 +892,8 @@ function on_update() {
ui.played_card.replaceChildren()
if (view.played_card > 0)
ui.played_card.appendChild(ui.cards[view.played_card])
+ if (view.vm_event > 0)
+ ui.played_card.appendChild(ui.cards[view.vm_event])
if (view.power_card_1 > 0)
ui.played_card.appendChild(ui.power_cards[view.power_card_1])
if (view.power_card_2 > 0)
diff --git a/rules.js b/rules.js
index 8e80511..93c3f51 100644
--- a/rules.js
+++ b/rules.js
@@ -384,6 +384,7 @@ exports.view = function (state, player) {
actions: null,
played_card: game.played_card,
+ vm_event: game.vm_event,
valid_spaces: game.valid_spaces,
valid_cards: game.valid_cards,