summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-06-02 22:21:53 +0200
committerTor Andersson <tor@ccxvii.net>2023-12-10 18:13:09 +0100
commited285d6c4d588cc95574fcdb2e0c8b586965e881 (patch)
treeb0bed9a2c39ddbaa76802ff502a7b723ee256de0 /play.js
parent3f4dbbd75f5ef743e2e669f6f0b73b608d2ab084 (diff)
downloadplantagenet-ed285d6c4d588cc95574fcdb2e0c8b586965e881.tar.gz
Hook up lord cylinder images.
Diffstat (limited to 'play.js')
-rw-r--r--play.js8
1 files changed, 2 insertions, 6 deletions
diff --git a/play.js b/play.js
index 4cf1ec0..8474dc7 100644
--- a/play.js
+++ b/play.js
@@ -284,11 +284,6 @@ function on_focus_cylinder(evt) {
let info = data.lords[lord]
let loc = view.pieces.locale[lord]
let tip = info.name
-
- if (loc >= CALENDAR) {
- tip += ` - ${info.fealty} Fealty`
- }
-
on_focus(tip)
}
@@ -738,7 +733,8 @@ function build_map() {
data.lords.forEach((lord, ix) => {
let e = ui.lord_cylinder[ix] = document.createElement("div")
let name = clean_name(lord.name)
- e.className = "cylinder lord lord_" + name + " hide"
+ let side = clean_name(lord.side)
+ e.className = "cylinder lord " + side + " lord_" + name + " hide"
register_action(e, "lord", ix)
register_tooltip(e, on_focus_cylinder)
document.getElementById("pieces").appendChild(e)