From f0d938b50aa2a06e4223df1c2297e7310b0c9221 Mon Sep 17 00:00:00 2001 From: iainp5 Date: Mon, 7 Oct 2024 18:12:20 +0100 Subject: Popup with scoring cards --- play.html | 8 ++++---- play.js | 3 ++- rules.js | 3 +-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/play.html b/play.html index 6d674a3..89c0e38 100644 --- a/play.html +++ b/play.html @@ -28,7 +28,7 @@
  • 📣 Place SPs
  • 💪 Support Check -
  • 🦻 Tiananmen Square Track +
  • 🛢 Tiananmen Square Track @@ -38,7 +38,7 @@
  • 🎴 Resolve Opponent Event
  • 📣 Place SPs
  • 💪 Support Check -
  • 🦻 Tiananmen Square Track +
  • 🛢 Tiananmen Square Track
  • @@ -48,7 +48,7 @@
  • 🎴 Resolve Opponent Event
  • 📣 Place SPs
  • 💪 Support Check -
  • 🦻 Tiananmen Square Track +
  • 🛢 Tiananmen Square Track
  • @@ -213,7 +213,7 @@
    Set aside card
    -
    +
    diff --git a/play.js b/play.js index fcbf6e7..791026e 100644 --- a/play.js +++ b/play.js @@ -624,8 +624,9 @@ if (view.ceausescu_cards && view.ceausescu_cards.length > 0 && view.is_pwr_strug // SAMIZDAT CARD if (view.samizdat > 0 ) { + let samizdat_card = ui.cards[view.samizdat] document.getElementById("samizdat_panel").classList.remove("hide") - document.getElementById("samizdat_hand").appendChild(view.samizdat) + document.getElementById("samizdat_card").appendChild(samizdat_card) } else { document.getElementById("samizdat_panel").classList.add("hide") } diff --git a/rules.js b/rules.js index a073d27..99450a1 100644 --- a/rules.js +++ b/rules.js @@ -275,7 +275,7 @@ function gen_action(action, argument) { } view.actions[action].push(argument) } - //console.log('view.actions: ', view.actions, 'view.actions[action]: ', view.actions[action]) + console.log('view.actions: ', view.actions, 'view.actions[action]: ', view.actions[action]) } function gen_action_infl(space){ @@ -433,7 +433,6 @@ states.choose_card = { if (scoring_cards.includes(card)) { /*view.prompt = 'Play for:'*/ gen_action('card_event', card) - return } -- cgit v1.2.3