diff options
Diffstat (limited to 'play.js')
-rw-r--r-- | play.js | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -511,8 +511,6 @@ function on_update() { ui.military_vp.className = `piece cylinder purple vp${5+view.military_vp}` ui.political_vp.className = `piece cylinder orange vp${5+view.political_vp}` - document.querySelector("body").classList.toggle("censorship", view.censorship === 1) - document.getElementById("hand").replaceChildren() document.getElementById("final").replaceChildren() document.getElementById("discard").replaceChildren() @@ -547,6 +545,11 @@ function on_update() { document.getElementById("set_aside_panel").classList.add("hide") } + if (view.hand && view.hand.length === 5) + document.getElementById("discard_panel").classList.add("hide") + else + document.getElementById("discard_panel").classList.remove("hide") + for (let i = 0; i < space_names.length; ++i) layout[i] = [] |