diff options
Diffstat (limited to 'play.js')
-rw-r--r-- | play.js | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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] = [] |