diff options
author | teisuru <31881306+teisuru@users.noreply.github.com> | 2023-10-16 20:17:46 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-12-10 18:16:55 +0100 |
commit | 5e7c9fb6179985daeabc72663ccded0c238de3eb (patch) | |
tree | bf42287688f0d58c373612a3db5fba48e133a9d9 /rules.js | |
parent | 76530cbb74b53087abc4fe288c35cdb10773bc0c (diff) | |
download | plantagenet-5e7c9fb6179985daeabc72663ccded0c238de3eb.tar.gz |
capability Y8
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 15 |
1 files changed, 11 insertions, 4 deletions
@@ -396,7 +396,7 @@ const AOW_YORK_WE_DONE_DEEDS_OF_CHARITY = Y4 // TODO const AOW_YORK_THOMAS_BOURCHIER = Y5 const AOW_YORK_GREAT_SHIPS = Y6 const AOW_YORK_HARBINGERS = Y7 -const AOW_YORK_ENGLAND_IS_MY_HOME = Y8 // TODO +const AOW_YORK_ENGLAND_IS_MY_HOME = Y8 const AOW_YORK_BARRICADES = Y9 const AOW_YORK_AGITATORS = Y10 // TODO const AOW_YORK_YORKISTS_NEVER_WAIT = Y11 @@ -4258,8 +4258,14 @@ function get_lord_in_exile(lord) { } function exile_lord(lord) { - set_lord_in_exile(lord) - disband_lord(lord, false) + if (!lord_has_capability(lord, AOW_YORK_ENGLAND_IS_MY_HOME)) { + set_lord_in_exile(lord) + disband_lord(lord, false) + } + else { + disband_lord(lord, false) + set_lord_calendar(lord, current_turn() + 1) + } } function remove_lord_from_exile(lord) { @@ -7142,12 +7148,13 @@ states.pillage_locale = { function disband_lord(lord, permanently = false) { let turn = current_turn() + let extra = 6 if (permanently) { log(`Removed L${lord}.`) set_lord_locale(lord, NOWHERE) } else { - set_lord_calendar(lord, turn + (6 - data.lords[lord].influence)) + set_lord_calendar(lord, turn + (extra - data.lords[lord].influence)) log(`Disbanded L${lord} to ${get_lord_calendar(lord)}.`) } |