summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
Diffstat (limited to 'play.js')
-rw-r--r--play.js12
1 files changed, 9 insertions, 3 deletions
diff --git a/play.js b/play.js
index 1568708..71b70d2 100644
--- a/play.js
+++ b/play.js
@@ -1363,17 +1363,21 @@ function sub_space(match, p1) {
return `<span class="tip" onmouseenter="on_focus_space_tip(${x})" onmouseleave="on_blur_space_tip(${x})" onmousedown="on_click_space_tip(${x})">${n}</span>`
}
-const E_DS = '<img class="c" src="pieces/ds_governor.svg">'
-const E_BK = '<img class="c" src="pieces/bk_amir.svg">'
-const E_VE = '<img class="c" src="pieces/ve_raja.svg">'
+const E_DS = '<img class="h" src="pieces/ds_governor.svg">'
+const E_BK = '<img class="h" src="pieces/bk_amir.svg">'
+const E_VE = '<img class="h" src="pieces/ve_raja.svg">'
const C_DS = '<img class="c" src="pieces/ds_troop.svg">'
const C_MI = '<img class="c" src="pieces/mongol_invader.svg">'
+
const F_DS = '<img class="f" src="images/Flags_DS.png">'
const F_BK = '<img class="f" src="images/Flags_BK.png">'
const F_VE = '<img class="f" src="images/Flags_VE.png">'
const F_MI = '<img class="f" src="images/Flags_MI.png">'
+const I_BK = '<img class="i" src="images/Influence_BK.png">'
+const I_VE = '<img class="i" src="images/Influence_VE.png">'
+
function on_log(text) {
let p = document.createElement("div")
let sub_text = ""
@@ -1396,6 +1400,8 @@ function on_log(text) {
text = text.replace(/\bFBK\b/g, F_BK)
text = text.replace(/\bFVE\b/g, F_VE)
text = text.replace(/\bFMI\b/g, F_MI)
+ text = text.replace(/\bIBK\b/g, I_BK)
+ text = text.replace(/\bIVE\b/g, I_VE)
if (text.match(/^\.h1 Mongol Invaders/)) {
text = text.substring(19)