summaryrefslogtreecommitdiff
path: root/rules.ts
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-05-04 18:08:14 +0200
committerTor Andersson <tor@ccxvii.net>2024-05-04 18:08:14 +0200
commit1c44b1e4c6dc9c8391427f927bb936bf2d24b5c8 (patch)
tree6eb987e4264cdcf3868874a70e6c5c662e404090 /rules.ts
parent0319f94c0dbecc0bffa1a98650fc5c0ac2674249 (diff)
downloadplantagenet-1c44b1e4c6dc9c8391427f927bb936bf2d24b5c8.tar.gz
parley during levy
Diffstat (limited to 'rules.ts')
-rw-r--r--rules.ts10
1 files changed, 6 insertions, 4 deletions
diff --git a/rules.ts b/rules.ts
index 5a979cc..3bdf581 100644
--- a/rules.ts
+++ b/rules.ts
@@ -4845,7 +4845,7 @@ function can_action_parley_campaign() {
return true
}
- if (is_exile_box(here) && count_shared_ships(here, false) > 0)
+ if ((is_seaport(here) || is_exile_box(here)) && count_shared_ships(here, false) > 0)
for (let next of find_ports(here, game.command))
if (can_parley_at(next))
return true
@@ -4865,7 +4865,7 @@ function search_parley_campaign(here: Locale, lord: Lord) {
if (can_parley_at(next))
map_set(result, next, 8)
- if (is_exile_box(here) && count_shared_ships(here, false) > 0)
+ if ((is_seaport(here) || is_exile_box(here)) && count_shared_ships(here, false) > 0)
for (let next of find_ports(here, lord))
if (!map_has(result, next) && can_parley_at(next))
map_set(result, next, 8 | find_sea_mask(here) | find_sea_mask(next))
@@ -4952,10 +4952,12 @@ function end_parley(success: boolean) {
}
if (is_campaign_phase()) {
- if (game.active === YORK && is_event_in_play(EVENT_LANCASTER_NEW_ACT_OF_PARLIAMENT))
+ if (game.active === YORK && is_event_in_play(EVENT_LANCASTER_NEW_ACT_OF_PARLIAMENT)) {
+ logevent(EVENT_LANCASTER_NEW_ACT_OF_PARLIAMENT)
spend_all_actions()
- else
+ } else {
spend_action(1)
+ }
resume_command()
} else {
if (success)