summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--play.html5
-rw-r--r--play.js5
2 files changed, 9 insertions, 1 deletions
diff --git a/play.html b/play.html
index e21d2a3..ff4c32d 100644
--- a/play.html
+++ b/play.html
@@ -81,6 +81,11 @@
<div id="ceausescu_hand" class="panel_body power"></div>
</div>
+<div id="securitate_panel" class="autohide panel">
+ <div id="securiate_header" class="panel_header">Securitate - Democrat Power Struggle Cards</div>
+ <div id="securitate" class="panel_body"></div>
+</div>
+
<div id="power_discard_panel" class="autohide panel">
<div id="power_discard_header" class="panel_header">Power Struggle Discard</div>
<div id="power_discard" class="panel_body power"></div>
diff --git a/play.js b/play.js
index 8ea17a2..53540d5 100644
--- a/play.js
+++ b/play.js
@@ -374,6 +374,7 @@ const ui = {
power_hand: document.getElementById("power_hand"),
power_discard: document.getElementById("power_discard"),
opp_hand: document.getElementById("opp_hand"),
+ securitate: document.getElementById("securitate")
discard: document.getElementById("discard"),
removed: document.getElementById("removed"),
persistent: document.getElementById("persistent"),
@@ -682,9 +683,11 @@ function on_update() {
if (view.opp_hand)
for (let c of view.opp_hand)
ui.opp_hand.appendChild(ui.cards[c])
+
+ ui.securitate.replaceChildren()
if (view.opp_power_hand)
for (let c of view.opp_power_hand)
- ui.opp_hand.appendChild(ui.power_cards[c])
+ ui.securitate.appendChild(ui.power_cards[c])
ui.ceausescu_hand.replaceChildren()
if (view.ceausescu_cards)