From e7f7b67b3b349ed88d00b1a21212b8adbb8bd750 Mon Sep 17 00:00:00 2001 From: iainp5 Date: Thu, 2 Jan 2025 09:43:16 +0000 Subject: Add vm_event to played_card panel --- play.js | 2 ++ rules.js | 1 + 2 files changed, 3 insertions(+) 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, -- cgit v1.2.3