summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-07-02 02:38:03 +0200
committerTor Andersson <tor@ccxvii.net>2023-07-07 19:05:52 +0200
commited0f37f1142f468199ca9420552ff0979bdfe43d (patch)
treee2283ef1cbc56d0d2382a80706e2f83013cdc72e /play.js
parentbd0b0887e57945ead36b7c395c4a6855342398e0 (diff)
downloadtime-of-crisis-ed0f37f1142f468199ca9420552ff0979bdfe43d.tar.gz
Emperor rules.
Diffstat (limited to 'play.js')
-rw-r--r--play.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/play.js b/play.js
index 8a97fa6..3862f75 100644
--- a/play.js
+++ b/play.js
@@ -1355,6 +1355,7 @@ function on_update() {
}
e.classList.toggle("unavailable", region === UNAVAILABLE)
e.classList.toggle("selected", view.selected_general === pi * 6 + ai)
+ e.classList.toggle("emperor", view.emperor === army)
}
if (avail_stack.length >= 6)
layout_available(avail_stack, 48, pi * 625 + 0, 30)
@@ -1380,6 +1381,7 @@ function on_update() {
}
e.classList.toggle("unavailable", region === UNAVAILABLE)
e.classList.toggle("selected", view.selected_governor === pi * 6 + ai)
+ e.classList.toggle("emperor", view.emperor === pi * 6 + ai)
}
if (avail_stack.length >= 6)
layout_available(avail_stack, 43, pi * 625 + 325, 27)