summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-06-02 23:13:41 +0200
committerTor Andersson <tor@ccxvii.net>2024-06-02 23:15:52 +0200
commit6a16233d53f39e129599c3ecb621df6ad6ff7967 (patch)
tree357ec4c37a2a6aef412001fcb3325d03461de950 /play.js
parent68b0887cfa4398f767d096996509941f9642c3da (diff)
downloadfriedrich-6a16233d53f39e129599c3ecb621df6ad6ff7967.tar.gz
stack deck for clock of fate
Diffstat (limited to 'play.js')
-rw-r--r--play.js7
1 files changed, 3 insertions, 4 deletions
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()