summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authorMischa Untaga <99098079+MischaU8@users.noreply.github.com>2023-11-25 19:30:37 +0100
committerMischa Untaga <99098079+MischaU8@users.noreply.github.com>2023-11-25 19:30:37 +0100
commitee335ce662ce60b1b64c977ca8bf9045d8ef2863 (patch)
treef6966e10435d14cf5e27ffba0a58e7328f051aad /play.js
parent0d3bc033f8ebf9f9700f190fe00217ee36ce883f (diff)
downloadvotes-for-women-ee335ce662ce60b1b64c977ca8bf9045d8ef2863.tar.gz
show_opponents_hand_discard_1_draw_1 and select_1_card_from_draw_deck_play_event_shuffle
Diffstat (limited to 'play.js')
-rw-r--r--play.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/play.js b/play.js
index 1ff0d02..75b5602 100644
--- a/play.js
+++ b/play.js
@@ -668,6 +668,7 @@ function on_update() { // eslint-disable-line no-unused-vars
}
document.getElementById("hand").replaceChildren()
+ document.getElementById("set_aside").replaceChildren()
document.getElementById("support_claimed").replaceChildren()
document.getElementById("support_discard").replaceChildren()
document.getElementById("opposition_claimed").replaceChildren()
@@ -684,6 +685,14 @@ function on_update() { // eslint-disable-line no-unused-vars
document.getElementById("hand_panel").classList.add("hide")
}
+ if (view.set_aside.length) {
+ document.getElementById("set_aside_panel").classList.remove("hide")
+ for (let c of view.set_aside)
+ document.getElementById("set_aside").appendChild(ui.cards[c])
+ } else {
+ document.getElementById("set_aside_panel").classList.add("hide")
+ }
+
for (let c of view.support_claimed)
document.getElementById("support_claimed").appendChild(ui.cards[c])
for (let c of view.support_discard)
@@ -752,7 +761,6 @@ function on_update() { // eslint-disable-line no-unused-vars
let state_cubes = []
for (let c = 0; c < purple_cubes(i); ++c) {
e = ui.cubes[cube_idx++]
- // TODO track both state and color
e.my_us_state = i
e.my_cube = PURPLE
e.classList.add("purple")