diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-01-04 13:16:07 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-02-18 13:02:38 +0100 |
commit | 975598ddc6c69e7ae38876635aeacdfe439f75b9 (patch) | |
tree | dac3ac2ebf2ec4f52a83c574eb7e671ac34f2be0 | |
parent | d328a1b8c724ff1cd655733a3e5856fc6edfa307 (diff) | |
download | nevsky-975598ddc6c69e7ae38876635aeacdfe439f75b9.tar.gz |
Fix Veliky Knyaz restoring mustered forces.
-rw-r--r-- | rules.js | 13 |
1 files changed, 1 insertions, 12 deletions
@@ -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() { |