summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-02-16 15:09:08 +0100
committerTor Andersson <tor@ccxvii.net>2024-02-16 15:12:11 +0100
commit374a838509706ed6abb79d9d54d48cb993733679 (patch)
tree2d779c83261dd4dfc2df5a71bb68f62f9a709cc8
parent830ee426e2b13cdd9ed9d5e999f06901b50f5576 (diff)
downloadnevsky-374a838509706ed6abb79d9d54d48cb993733679.tar.gz
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.
-rw-r--r--rules.js2
1 files changed, 2 insertions, 0 deletions
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() {