summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
Diffstat (limited to 'play.js')
-rw-r--r--play.js12
1 files changed, 5 insertions, 7 deletions
diff --git a/play.js b/play.js
index 12470c5..f15659e 100644
--- a/play.js
+++ b/play.js
@@ -848,11 +848,12 @@ function on_update() {
ui.hand.appendChild(ui.cards[c])
ui.power_hand.replaceChildren()
- if (view.is_pwr_struggle)
+ if (view.is_pwr_struggle) {
ui.power_hand.appendChild(ui.power_cards[53])
if (view.power_hand.length > 0)
for (let c of view.power_hand)
ui.power_hand.appendChild(ui.power_cards[c])
+ }
ui.power_discard.replaceChildren()
if (view.power_struggle_discard)
@@ -993,14 +994,13 @@ function sub_icon(match) {
}
function sub_arrow(_match) {
- return '<span>&nbsp&#8594&nbsp</span>'
+ return " \u2192 "
}
function wrap_icons(match) {
- return `<span class="icon_holder">${match}</span>`;
+ return `<span class="marginalia">${match.replace("(", "").replace(")", "")}</span>`
}
-
const ICONS = {
'£CC': '<span class="icon com_c"></span>',
'£CU': '<span class="icon com_nc"></span>',
@@ -1045,9 +1045,7 @@ function on_log(text, ix) {
p.className = "i"
}
-/*
- text = text.replace(/(\(£[CDU][CU]\s\.to\s£[CDU][CU]\))/g, wrap_icons)
-*/
+ text = text.replace(/(\(£[CDU][CU]\s\.to\s£[CDU][CU]\))/g, wrap_icons)
text = text.replace(/_/g, " ")
text = text.replace(/C(\d+)/g, sub_card_name)