summaryrefslogtreecommitdiff
path: root/rules.ts
diff options
context:
space:
mode:
Diffstat (limited to 'rules.ts')
-rw-r--r--rules.ts12
1 files changed, 6 insertions, 6 deletions
diff --git a/rules.ts b/rules.ts
index fdcd472..49d62e7 100644
--- a/rules.ts
+++ b/rules.ts
@@ -2881,13 +2881,15 @@ function disband_lord(lord: Lord) {
clear_lord(lord)
}
-function exile_lord(lord: Lord) {
+function exile_lord(lord: Lord, penalty: boolean) {
if (lord_has_capability(lord, AOW_YORK_ENGLAND_IS_MY_HOME) && !is_event_in_play(EVENT_LANCASTER_BLOCKED_FORD)) {
logcap(AOW_YORK_ENGLAND_IS_MY_HOME)
log(`Disband L${lord} to T${current_turn() + 1}`)
set_lord_calendar(lord, current_turn() + 1)
clear_lord(lord)
} else {
+ if (penalty)
+ reduce_influence(get_lord_influence(lord) + count_vassals_with_lord(lord))
set_lord_calendar(lord, current_turn() + 6 - get_lord_influence(lord))
set_lord_in_exile(lord)
log(`Exile L${lord} to T${get_lord_calendar(lord)}.`)
@@ -5774,9 +5776,7 @@ states.choose_exile = {
push_undo()
give_up_spoils(lord)
- reduce_influence(get_lord_influence(lord) + count_vassals_with_lord(lord))
-
- exile_lord(lord)
+ exile_lord(lord, true)
if (game.scenario === SCENARIO_II) {
if (lord === LORD_WARWICK_L)
@@ -8674,7 +8674,7 @@ states.foreign_haven = {
exile() {
log_br()
log("Foreign Haven.")
- exile_lord(LORD_EDWARD_IV)
+ exile_lord(LORD_EDWARD_IV, false)
set_delete(game.battle.routed, LORD_EDWARD_IV)
set_delete(game.battle.fled, LORD_EDWARD_IV)
goto_death_check()
@@ -8740,7 +8740,7 @@ states.escape_ship = {
push_undo()
// Note: locale must be friendly for this event, so no spoils.
- exile_lord(lord)
+ exile_lord(lord, false)
set_delete(game.battle.fled, lord)
set_delete(game.battle.routed, lord)