diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-10-23 12:08:47 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-10-23 12:13:09 +0200 |
commit | 456d08d10840405e34f20af321e1802bcf156c53 (patch) | |
tree | efbd31c898626597b246f11c665a6b068a98a350 /play.js | |
parent | 7dc86dde42c3bf9cd38bc40da477dbd03f5b5ba3 (diff) | |
download | maria-456d08d10840405e34f20af321e1802bcf156c53.tar.gz |
25 optional political rule
Diffstat (limited to 'play.js')
-rw-r--r-- | play.js | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -1003,10 +1003,10 @@ const colorize_3 = '<span class="value deck_3">$1</span>' const colorize_4 = '<span class="value deck_4">$1</span>' function colorize(text) { - text = text.replace(/1\^(\d+)/g, colorize_1) - text = text.replace(/2\^(\d+)/g, colorize_2) - text = text.replace(/3\^(\d+)/g, colorize_3) - text = text.replace(/4\^(\d+)/g, colorize_4) + text = text.replace(/1\^(\d+[\u2660\u2663\u2665\u2666R])/g, colorize_1) + text = text.replace(/2\^(\d+[\u2660\u2663\u2665\u2666R])/g, colorize_2) + text = text.replace(/3\^(\d+[\u2660\u2663\u2665\u2666R])/g, colorize_3) + text = text.replace(/4\^(\d+[\u2660\u2663\u2665\u2666R])/g, colorize_4) text = text.replace(/(\d+)R/g, colorize_R) text = text.replaceAll("\u2660", colorize_S) text = text.replaceAll("\u2663", colorize_C) @@ -1099,10 +1099,10 @@ function on_update() { for (let pow of all_major_powers) { ui.pc_placed[pow].replaceChildren() - for (let tc of view.saved[pow]) + for (let tc of view.face_up[pow]) + ui.pc_placed[pow].appendChild(show_tc(tc)) + for (let tc of view.face_down[pow]) ui.pc_placed[pow].appendChild(show_tc(tc)) - if (view.placed && view.placed[pow] >= 0) - ui.pc_placed[pow].appendChild(show_tc(view.placed[pow])) } ui.pc_show.replaceChildren() |