From 831f8f38ac8f3983db9a3f1900ccf7225366dac1 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 1 Nov 2024 00:50:56 +0100 Subject: fix logging glitch with events that grant troops --- rules.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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" -- cgit v1.2.3