diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-04-23 22:53:22 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-04-23 22:54:01 +0200 |
commit | 59211374d0a19c61828600c92fc82f64e1dc9f06 (patch) | |
tree | 786738e45296fd999b06a193086d611f2e2b6551 /rules.ts | |
parent | 3967b40ee7eae34fda5a1a2ce09f13902f3e5568 (diff) | |
download | plantagenet-59211374d0a19c61828600c92fc82f64e1dc9f06.tar.gz |
fix tax collectors
Diffstat (limited to 'rules.ts')
-rw-r--r-- | rules.ts | 17 |
1 files changed, 12 insertions, 5 deletions
@@ -11154,16 +11154,21 @@ function can_tax_collectors(lord: Lord) { states.tax_collectors = { inactive: "Tax Collectors", prompt() { - view.prompt = "Tax Collectors : You may tax for Double coin with each lord" + view.prompt = "Tax Collectors: Each Yorkist lord may immediately tax for twice the coin." + let done = true for (let lord of all_york_lords) { - if (!get_lord_moved(lord) && can_tax_collectors(lord)) + if (!get_lord_moved(lord) && can_tax_collectors(lord)) { gen_action_lord(lord) + done = false + } } + if (done) + view.prompt = "Tax Collectors: All done." view.actions.done = 1 }, lord(lord) { push_undo() - set_lord_moved(lord, 0) + set_lord_moved(lord, 1) game.where = NOWHERE game.who = lord game.state = "tax_collectors_lord" @@ -11177,11 +11182,11 @@ states.tax_collectors_lord = { inactive: "Tax Collectors", prompt() { if (game.where === NOWHERE) { - view.prompt = "Tax Collectors: Select a Stronghold to Tax." + view.prompt = `Tax Collectors: ${lord_name[game.who]}. Choose a stronghold.` for (let loc of search_tax([], get_lord_locale(game.who), game.who)) gen_action_locale(loc) } else { - view.prompt = `Tax Collectors: Attempt to Tax ${locale_name[game.where]}.` + view.prompt = `Tax Collectors: Tax ${locale_name[game.where]} with ${lord_name[game.who]}.` prompt_influence_check(game.who) } }, @@ -11212,6 +11217,8 @@ function end_tax_collectors() { game.where = NOWHERE game.who = NOBODY game.count = 0 + for (let lord of all_york_lords) + set_lord_moved(lord, 0) end_immediate_event() } |