summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authorJoël Simoneau <simoneaujoel@gmail.com>2024-10-27 19:04:25 -0400
committerJoël Simoneau <simoneaujoel@gmail.com>2024-10-27 19:04:25 -0400
commit47833d20bdd7dbfdd3f13e820f595fbd5b5c387b (patch)
treef4bfbaf1e88b4a639d795a7da61dab28c1aa862e /play.js
parent84fae8c76f570b649ad3f4b2f6a75438c303c272 (diff)
downloadvijayanagara-47833d20bdd7dbfdd3f13e820f595fbd5b5c387b.tar.gz
Rebel and Control.
Diffstat (limited to 'play.js')
-rw-r--r--play.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/play.js b/play.js
index df932ed..f173ee6 100644
--- a/play.js
+++ b/play.js
@@ -908,10 +908,15 @@ function on_update() {
}
// Control
- view.tributary &= ~(1 << 12)
if (s < S_DELHI) {
if (view.tributary & (1<<s))
ui.control[s].className = "token tributary"
+ else if (view.control[0] & (1<<s))
+ ui.control[s].className = "token ds_ctl"
+ else if (view.control[1] & (1<<s))
+ ui.control[s].className = "token bk_ctl"
+ else if (view.control[2] & (1<<s))
+ ui.control[s].className = "token ve_ctl"
else
ui.control[s].className = "hide"
}
@@ -959,7 +964,9 @@ function on_update() {
// Command buttons
action_button("rally", "Rally")
+ action_button("rebel", "Rebel")
action_button("end_rally", "End Rally")
+ action_button("end_rebel", "End Rebel")
// Decree buttons
action_button("build", "Build")