summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoël Simoneau <simoneaujoel@gmail.com>2025-04-01 17:26:46 -0400
committerJoël Simoneau <simoneaujoel@gmail.com>2025-04-01 17:26:46 -0400
commit36d3870eb9eaa056203741c9644cc383902129af (patch)
tree11268303ec7c8938074c1eb49b3ce24da47688d5
parent515ada94a8ec8c91f5c633995ae589bbf5e4ac7c (diff)
downloadvijayanagara-36d3870eb9eaa056203741c9644cc383902129af.tar.gz
Adding more logo
-rw-r--r--play.js9
-rw-r--r--rules.js10
2 files changed, 14 insertions, 5 deletions
diff --git a/play.js b/play.js
index 047c5fd..1568708 100644
--- a/play.js
+++ b/play.js
@@ -1363,6 +1363,11 @@ 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 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">'
@@ -1382,7 +1387,11 @@ function on_log(text) {
text = text.replace(/</g, "&lt;")
text = text.replace(/>/g, "&gt;")
+ text = text.replace(/\bCDS\b/g, C_DS)
text = text.replace(/\bCMI\b/g, C_MI)
+ text = text.replace(/\bEDS\b/g, E_DS)
+ text = text.replace(/\bEBK\b/g, E_BK)
+ text = text.replace(/\bEVE\b/g, E_VE)
text = text.replace(/\bFDS\b/g, F_DS)
text = text.replace(/\bFBK\b/g, F_BK)
text = text.replace(/\bFVE\b/g, F_VE)
diff --git a/rules.js b/rules.js
index b0216b6..4bd9944 100644
--- a/rules.js
+++ b/rules.js
@@ -2352,7 +2352,7 @@ states.compel_space_influencial = {
}
},
piece(p) {
- logi("Removed " + piece_name(p) + " from S" + piece_space(p))
+ logi("Removed " + piece_symbol(p) + " from S" + piece_space(p))
let f = piece_faction(p)
remove_piece(p)
@@ -4553,7 +4553,7 @@ function pop_vm_prompt() {
}
function vm_remove() {
- log("Removed " + piece_name(game.vm.p) + " from S" + piece_space(game.vm.p) + ".")
+ log("Removed " + piece_symbol(game.vm.p) + " from S" + piece_space(game.vm.p) + ".")
remove_piece(game.vm.p)
vm_next()
}
@@ -5691,9 +5691,9 @@ const PIECE_FACTION_TYPE_NAME = [
[ null, null, "Invader" ]
]
const PIECE_FACTION_TYPE_SYMBOL = [
- [ null, null, null ],
- [ null, null, null ],
- [ null, null, null ],
+ [ null, "EDS", "CDS" ],
+ [ null, "EBK", null ],
+ [ null, "EVE", null ],
[ null, null, "CMI" ]
]
const LAST_CAVALRY = 9