summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriainp5 <iain.pearce.ip@gmail.com>2024-10-07 18:13:57 +0100
committeriainp5 <iain.pearce.ip@gmail.com>2024-10-07 18:13:57 +0100
commit1723023768ca11179bd4d0235ab0a4b01d12d5f9 (patch)
tree84c29243729ffde5d6fde5ee3ab6a26e011e577f
parentd6d29d621fbb4dc78e38fdb2f31f9b914997acb5 (diff)
download1989-dawn-of-freedom-1723023768ca11179bd4d0235ab0a4b01d12d5f9.tar.gz
Fix for Samizdat set aside
-rw-r--r--play.html2
-rw-r--r--play.js3
2 files changed, 3 insertions, 2 deletions
diff --git a/play.html b/play.html
index 742ccc5..0046587 100644
--- a/play.html
+++ b/play.html
@@ -176,7 +176,7 @@
<section id = "sec_samizdat">
<div id="samizdat_panel" class="panel">
<div id="samizdat_header" class="panel_header">Set aside card</div>
- <div id="samizdat" class="panel_body"></div>
+ <div id="samizdat_card" class="panel_body"></div>
</div>
</section>
diff --git a/play.js b/play.js
index 8f3b780..a82a8b0 100644
--- a/play.js
+++ b/play.js
@@ -525,8 +525,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")
}