summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
Diffstat (limited to 'play.js')
-rw-r--r--play.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/play.js b/play.js
index a0f037b..f3e654b 100644
--- a/play.js
+++ b/play.js
@@ -924,10 +924,20 @@ function on_update() {
layout_pieces(items, xy[0], xy[1], discs, VE)
}
+ // Action highlighting
if (s <= S_VE_AVAILABLE) {
ui.spaces[s].classList.toggle("action", is_action("space", s))
ui.spaces[s].classList.toggle("selected", view.where === s)
}
+
+ // Control
+ view.tributary &= ~(1 << 12)
+ if (s < S_DELHI) {
+ if (view.tributary & (1<<s))
+ ui.control[s].className = "token tributary"
+ else
+ ui.control[s].className = "hide"
+ }
}
items.length = 0