diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-11-27 23:55:30 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-11-28 23:33:22 +0100 |
commit | 24a1e303b84fad2a4c60c037109943025912999e (patch) | |
tree | 4ff00ec592a7b4723bcdeeb838dc9aae740839cd /play.js | |
parent | dfc5632eef35ed36a5b1f400292c2739802d85f0 (diff) | |
download | maria-24a1e303b84fad2a4c60c037109943025912999e.tar.gz |
separate subsidy and returned card arrays and prompts
Diffstat (limited to 'play.js')
-rw-r--r-- | play.js | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -833,6 +833,8 @@ function on_init() { ui.tcbreak1.className = "draw-break" ui.tcbreak2 = document.createElement("div") ui.tcbreak2.className = "draw-break" + ui.tcbreak3 = document.createElement("div") + ui.tcbreak3.className = "draw-break" ui.turn = document.createElement("div") ui.turn.className = "marker turn_marker" @@ -1501,11 +1503,16 @@ function on_update() { for (let c of view.hand2[pow].slice().sort(cmp_tc)) ui.hand[pow].appendChild(show_tc(c)) } + if (view.hand3[pow].length > 0) { + ui.hand[pow].appendChild(ui.tcbreak2) + for (let c of view.hand3[pow].slice().sort(cmp_tc)) + ui.hand[pow].appendChild(show_tc(c)) + } } if (view.draw) { if (view.hand1[view.power].length + view.hand2[view.power].length > 0) - ui.hand[view.power].appendChild(ui.tcbreak2) + ui.hand[view.power].appendChild(ui.tcbreak3) for (let c of view.draw.slice().sort(cmp_tc)) ui.hand[view.power].appendChild(ui.tc[c]) } |