From 6a16233d53f39e129599c3ecb621df6ad6ff7967 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 2 Jun 2024 23:13:41 +0200 Subject: stack deck for clock of fate --- play.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'play.js') diff --git a/play.js b/play.js index badf42c..965e363 100644 --- a/play.js +++ b/play.js @@ -441,7 +441,7 @@ const ui = { spaces_element: document.getElementById("spaces"), pieces_element: document.getElementById("pieces"), markers_element: document.getElementById("markers"), - clock_of_fate: document.getElementById("clock_of_fate"), + clock_of_fate: document.getElementById("clock_of_fate_display"), discard: [ document.getElementById("discard_1"), document.getElementById("discard_2"), @@ -1097,12 +1097,11 @@ function on_update() { } ui.clock_of_fate.replaceChildren() - if (view.oo > 0) - ui.clock_of_fate.appendChild(ui.tc[view.oo]) - ui.clock_of_fate.appendChild(ui.fate[0]) if (typeof view.fate === "object") for (let c of view.fate) ui.clock_of_fate.appendChild(ui.fate[c]) + if (view.oo > 0) + ui.clock_of_fate.appendChild(ui.tc[view.oo]) for (let deck = 0; deck < 5; ++deck) { ui.discard[deck].replaceChildren() -- cgit v1.2.3