diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-06-02 23:13:41 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-06-02 23:15:52 +0200 |
commit | 6a16233d53f39e129599c3ecb621df6ad6ff7967 (patch) | |
tree | 357ec4c37a2a6aef412001fcb3325d03461de950 /play.js | |
parent | 68b0887cfa4398f767d096996509941f9642c3da (diff) | |
download | friedrich-6a16233d53f39e129599c3ecb621df6ad6ff7967.tar.gz |
stack deck for clock of fate
Diffstat (limited to 'play.js')
-rw-r--r-- | play.js | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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() |