From f9265b22d989031351af3c667d5af44a56ad376b Mon Sep 17 00:00:00 2001 From: teisuru <31881306+teisuru@users.noreply.github.com> Date: Wed, 6 Dec 2023 09:12:55 +0100 Subject: L31 cap --- rules.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/rules.js b/rules.js index 4946767..4a55e7c 100644 --- a/rules.js +++ b/rules.js @@ -5922,6 +5922,12 @@ const battle_steps = [ function count_archery_hits(lord) { let hits = 0 + let die = 0 + for (let lord = first_friendly_lord; lord <= last_friendly_lord; ++lord) { + if (lord_has_capability(lord, AOW_YORK_CULVERINS_AND_FALCONETS) || lord_has_capability(lord, AOW_LANCASTER_CULVERINS_AND_FALCONETS)) + die = roll_die() + } + hits += get_lord_forces(lord, LONGBOWMEN) << 2 hits += get_lord_forces(lord, BURGUNDIANS) << 2 hits += get_lord_forces(lord, MILITIA) @@ -6311,7 +6317,10 @@ states.assign_hits = { prompt_hit_forces() }, retinue(lord) { - action_assign_hits(lord, RETINUE) + if((lord === LORD_MARGARET) && (lord_has_capability(AOW_LANCASTER_YEOMEN_OF_THE_CROWN)) && get_lord_forces(lord, MEN_AT_ARMS) > 0) + action_assign_hits(lord, MEN_AT_ARMS) + else + action_assign_hits(lord, RETINUE) }, burgundians(lord) { action_assign_hits(lord, BURGUNDIANS) -- cgit v1.2.3