summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-01-04 13:16:07 +0100
committerTor Andersson <tor@ccxvii.net>2023-02-18 13:02:38 +0100
commit975598ddc6c69e7ae38876635aeacdfe439f75b9 (patch)
treedac3ac2ebf2ec4f52a83c574eb7e671ac34f2be0 /rules.js
parentd328a1b8c724ff1cd655733a3e5856fc6edfa307 (diff)
downloadnevsky-975598ddc6c69e7ae38876635aeacdfe439f75b9.tar.gz
Fix Veliky Knyaz restoring mustered forces.
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js13
1 files changed, 1 insertions, 12 deletions
diff --git a/rules.js b/rules.js
index e27ed0e..0b58a89 100644
--- a/rules.js
+++ b/rules.js
@@ -1478,17 +1478,6 @@ function restore_lord_forces(lord, type, count) {
return 0
}
-function restore_vassal_forces(lord, vassal) {
- let info = data.vassals[vassal]
- restore_lord_forces(lord, KNIGHTS, info.forces.knights | 0)
- restore_lord_forces(lord, SERGEANTS, info.forces.sergeants | 0)
- restore_lord_forces(lord, LIGHT_HORSE, info.forces.light_horse | 0)
- restore_lord_forces(lord, ASIATIC_HORSE, info.forces.asiatic_horse | 0)
- restore_lord_forces(lord, MEN_AT_ARMS, info.forces.men_at_arms | 0)
- restore_lord_forces(lord, MILITIA, info.forces.militia | 0)
- restore_lord_forces(lord, SERFS, info.forces.serfs | 0)
-}
-
function muster_lord(lord, locale, service) {
let info = data.lords[lord]
@@ -5513,7 +5502,7 @@ function restore_mustered_forces(lord) {
muster_lord_forces(lord)
for (let v of data.lords[lord].vassals)
if (is_vassal_mustered(v))
- restore_vassal_forces(lord, v)
+ muster_vassal_forces(lord, v)
}
function can_action_tax() {