diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-08-13 11:26:23 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-08-13 11:26:57 +0200 |
commit | 136ba8e37f786d3c1ccf215a1589c8d083cc9762 (patch) | |
tree | e49f14b5ad6ee1b809d0285f9934b00803a7bab3 | |
parent | 909d80f51430896f34d4a93155466a6ac7b78764 (diff) | |
download | plantagenet-136ba8e37f786d3c1ccf215a1589c8d083cc9762.tar.gz |
scots should be "up to" -- add pass button
-rw-r--r-- | rules.js | 11 | ||||
-rw-r--r-- | rules.ts | 11 |
2 files changed, 20 insertions, 2 deletions
@@ -9810,16 +9810,25 @@ states.scots = { gen_action_lord(lord); } } + view.actions.done = 1; } else { view.prompt = `Scots: You may add 1 men-at-arms and 1 militia to ${lord_name[game.who]}.`; let troops = map_get(game.event_scots, game.who, 0); if ((troops & 1) === 0) view.actions.add_militia = 1; + else + view.actions.add_militia = 0; if ((troops & 2) === 0) view.actions.add_men_at_arms = 1; + else + view.actions.add_men_at_arms = 0; + view.actions.pass = 1; } - view.actions.done = 1; + }, + pass() { + map_set(game.event_scots, game.who, 3); + game.who = NOBODY; }, done() { end_lancaster_event_scots(); @@ -11376,15 +11376,24 @@ states.scots = { gen_action_lord(lord) } } + view.actions.done = 1 } else { view.prompt = `Scots: You may add 1 men-at-arms and 1 militia to ${lord_name[game.who]}.` let troops = map_get(game.event_scots, game.who, 0) if ((troops & 1) === 0) view.actions.add_militia = 1 + else + view.actions.add_militia = 0 if ((troops & 2) === 0) view.actions.add_men_at_arms = 1 + else + view.actions.add_men_at_arms = 0 + view.actions.pass = 1 } - view.actions.done = 1 + }, + pass() { + map_set(game.event_scots, game.who, 3) + game.who = NOBODY }, done() { end_lancaster_event_scots() |