summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-07-14 12:27:40 +0200
committerTor Andersson <tor@ccxvii.net>2023-07-14 12:27:40 +0200
commit937d8af3adec901a99e63b7f5152bc5605169d92 (patch)
treefcefbc3c0792e51467013a2c1723d53586166b7a
parent7278ea0172ce4bdeeaa18508ea368a49b97fdcf2 (diff)
downloadtime-of-crisis-937d8af3adec901a99e63b7f5152bc5605169d92.tar.gz
Fix bugs.
-rw-r--r--play.js4
-rw-r--r--rules.js2
2 files changed, 4 insertions, 2 deletions
diff --git a/play.js b/play.js
index 25ca516..f2b723a 100644
--- a/play.js
+++ b/play.js
@@ -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])
+ }
}
}
diff --git a/rules.js b/rules.js
index aa5017c..f1fa955 100644
--- a/rules.js
+++ b/rules.js
@@ -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()
},