summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
Diffstat (limited to 'play.js')
-rw-r--r--play.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/play.js b/play.js
index f2691b2..1c3c137 100644
--- a/play.js
+++ b/play.js
@@ -357,11 +357,16 @@ function on_update() {
ui.political_vp.className = `piece cylinder orange vp${5+view.political_vp}`
document.getElementById("hand").replaceChildren()
- if (view.objective)
- document.getElementById("hand").appendChild(ui.cards[view.objective])
+ document.getElementById("final").replaceChildren()
+ document.getElementById("objective").replaceChildren()
if (view.hand)
for (let c of view.hand)
document.getElementById("hand").appendChild(ui.cards[c])
+ if (view.final)
+ for (let c of view.final)
+ document.getElementById("final").appendChild(ui.cards[c])
+ if (view.objective)
+ document.getElementById("objective").appendChild(ui.cards[view.objective])
for (let i = 0; i < space_names.length; ++i)
layout[i] = []