summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
Diffstat (limited to 'play.js')
-rw-r--r--play.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/play.js b/play.js
index 2b087d1..0e15fb6 100644
--- a/play.js
+++ b/play.js
@@ -994,6 +994,11 @@ function sub_arrow(match) {
return '<span>&nbsp&#8594&nbsp</span>'
}
+function wrap_icons(match) {
+ return `<span class="icon_holder">${match}</span>`;
+}
+
+
const ICONS = {
'£CC': '<span class="icon com_c"></span>',
'£CU': '<span class="icon com_nc"></span>',
@@ -1038,6 +1043,10 @@ function on_log(text, ix) {
p.className = "i"
}
+/*
+ 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)
text = text.replace(/P(\d+)/g, sub_power_card_name)