From 374a838509706ed6abb79d9d54d48cb993733679 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 16 Feb 2024 15:09:08 +0100 Subject: Fix bad interaction between Smerdi and Veliky Knyaz. restore_mustered_forces zeroed out the mustered serfs. Remember and restore the serfs after restoring the lord's and the vassals' regular forces. --- rules.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rules.js b/rules.js index 2858176..5a5ecaf 100644 --- a/rules.js +++ b/rules.js @@ -6534,10 +6534,12 @@ function ravage_location(here, there) { // === ACTION: TAX === function restore_mustered_forces(lord) { + let serf_count = get_lord_forces(lord, SERFS) muster_lord_forces(lord) for (let v of data.lords[lord].vassals) if (is_vassal_mustered(v)) muster_vassal_forces(lord, v) + set_lord_forces(lord, SERFS, serf_count) } function can_action_tax() { -- cgit v1.2.3