diff options
author | Joël Simoneau <simoneaujoel@gmail.com> | 2024-10-27 19:04:25 -0400 |
---|---|---|
committer | Joël Simoneau <simoneaujoel@gmail.com> | 2024-10-27 19:04:25 -0400 |
commit | 47833d20bdd7dbfdd3f13e820f595fbd5b5c387b (patch) | |
tree | f4bfbaf1e88b4a639d795a7da61dab28c1aa862e /play.js | |
parent | 84fae8c76f570b649ad3f4b2f6a75438c303c272 (diff) | |
download | vijayanagara-47833d20bdd7dbfdd3f13e820f595fbd5b5c387b.tar.gz |
Rebel and Control.
Diffstat (limited to 'play.js')
-rw-r--r-- | play.js | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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") |