diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-07-14 12:27:40 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-07-14 12:27:40 +0200 |
commit | 937d8af3adec901a99e63b7f5152bc5605169d92 (patch) | |
tree | fcefbc3c0792e51467013a2c1723d53586166b7a | |
parent | 7278ea0172ce4bdeeaa18508ea368a49b97fdcf2 (diff) | |
download | time-of-crisis-937d8af3adec901a99e63b7f5152bc5605169d92.tar.gz |
Fix bugs.
-rw-r--r-- | play.js | 4 | ||||
-rw-r--r-- | rules.js | 2 |
2 files changed, 4 insertions, 2 deletions
@@ -1354,8 +1354,10 @@ function on_update() { for (let tribe = 0; tribe < 5; ++tribe) { for (let id = first_barbarian[tribe]; id <= last_barbarian[tribe]; ++id) { let loc = get_barbarian_location(id) - if (loc === army) + if (loc === army) { + ui.barbarians[id].classList.toggle("inactive", false) stack.push(ui.barbarians[id]) + } } } @@ -4783,7 +4783,7 @@ states.support_check_emperor = { region(where) { push_undo() game.count |= (1 << where) - log("Reduce support level in %" + where + ".") + log("Reduced support level in %" + where + ".") reduce_support(where) goto_support_check_mobs() }, |