summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-11-01 00:50:56 +0100
committerTor Andersson <tor@ccxvii.net>2024-11-01 00:50:56 +0100
commit831f8f38ac8f3983db9a3f1900ccf7225366dac1 (patch)
treec2bd2039c61ab79c1cdcd264fcd8ee7465d04735
parent35af7e5a32b936c4d91e7469c6a6e384afb983a9 (diff)
downloadmaria-831f8f38ac8f3983db9a3f1900ccf7225366dac1.tar.gz
fix logging glitch with events that grant troops
-rw-r--r--rules.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index dbd8f56..de2aeaf 100644
--- a/rules.js
+++ b/rules.js
@@ -4629,7 +4629,6 @@ states.political_troop_power = {
} else {
goto_political_troops_place()
}
- game.count = info.troops
},
pass() {
let info = event_troops[current_political_effect()]
@@ -4673,6 +4672,8 @@ function can_add_troops() {
}
function goto_political_troops_place() {
+ let info = event_troops[current_political_effect()]
+ game.count = info.troops
log(power_name[game.power] + " " + game.count + " troops.")
if (can_add_troops())
game.state = "political_troops_place"