diff options
author | Joël Simoneau <simoneaujoel@gmail.com> | 2024-10-25 14:15:02 -0400 |
---|---|---|
committer | Joël Simoneau <simoneaujoel@gmail.com> | 2024-10-25 14:15:02 -0400 |
commit | 0355e16c0bb38f34d9317a8ee54f03c8836c1261 (patch) | |
tree | 17b911dc7eb50ee03c10bebe86a1c53bbee95737 /play.js | |
parent | dd868f6af39224b8741384ddf05968f6545e425c (diff) | |
download | vijayanagara-0355e16c0bb38f34d9317a8ee54f03c8836c1261.tar.gz |
Conscript with tributaries
Diffstat (limited to 'play.js')
-rw-r--r-- | play.js | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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 |