diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-02-06 14:19:59 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-02-18 13:02:39 +0100 |
commit | e6e9dbf6b3492f8fabbb84ca1eddc9d61f08654d (patch) | |
tree | 2f643e260e592f0325253441a09f15ed0f2fb878 | |
parent | b8156168b00bab32bfb92806b6ab35910d55e03d (diff) | |
download | nevsky-e6e9dbf6b3492f8fabbb84ca1eddc9d61f08654d.tar.gz |
Force picking Lower Lord before planning cards.
-rw-r--r-- | rules.js | 25 |
1 files changed, 15 insertions, 10 deletions
@@ -4220,24 +4220,29 @@ states.campaign_plan = { view.who = upper view.actions.plan = [] - if (plan.length === 0) + if (plan.length === 0 && upper === NOBODY) view.prompt = "Plan: Designate Lieutenants and build a Plan." + else if (plan.length === 0 && upper !== NOBODY) + view.prompt = `Plan: Select Lower Lord for ${lord_name[upper]}.` else if (plan.length === max_plan_length()) view.prompt = "Plan: All done." else view.prompt = "Plan: Build a Plan." - if (plan.length < max_plan_length()) { - view.actions.end_plan = 0 - if (count_cards_in_plan(plan, NOBODY) < 3) - gen_action_plan(NOBODY) - for (let lord = first; lord <= last; ++lord) { - if (is_lord_on_map(lord) && count_cards_in_plan(plan, lord) < 3) - gen_action_plan(lord) + if (upper === NOBODY) { + if (plan.length < max_plan_length()) { + view.actions.end_plan = 0 + if (count_cards_in_plan(plan, NOBODY) < 3) + gen_action_plan(NOBODY) + for (let lord = first; lord <= last; ++lord) { + if (is_lord_on_map(lord) && count_cards_in_plan(plan, lord) < 3) + gen_action_plan(lord) + } + } else { + view.actions.end_plan = 1 } } else { - if (upper === NOBODY) - view.actions.end_plan = 1 + view.actions.end_plan = 0 } // Designate Lieutenants only if no plan started. |