summaryrefslogtreecommitdiff
path: root/rules.ts
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-04-28 18:24:11 +0200
committerTor Andersson <tor@ccxvii.net>2024-04-28 18:30:59 +0200
commit97bcc8afbc4b75dadb13bef63ddb51655a387c83 (patch)
tree4b16ebb92078acb4023428b6b96b6d4be19dd1f6 /rules.ts
parent3fa550e6d495b807751d3234d96f38e87dfbd02c (diff)
downloadplantagenet-97bcc8afbc4b75dadb13bef63ddb51655a387c83.tar.gz
married to a neville
Diffstat (limited to 'rules.ts')
-rw-r--r--rules.ts13
1 files changed, 9 insertions, 4 deletions
diff --git a/rules.ts b/rules.ts
index 54ffaeb..b25f808 100644
--- a/rules.ts
+++ b/rules.ts
@@ -1943,9 +1943,8 @@ function get_common_influence_bonus(lord: Lord) {
bonus += 2
} else {
if (lord_has_capability(lord, AOW_LANCASTER_MARRIED_TO_A_NEVILLE))
- if (get_lord_locale(LORD_WARWICK_L) === here)
- if (is_friendly_locale(here))
- bonus += 2
+ if (get_lord_locale(LORD_WARWICK_L) === here && is_friendly_locale(here))
+ bonus += 2
if (lord_has_capability(lord, AOW_LANCASTER_LOYAL_SOMERSET))
if (get_lord_locale(LORD_MARGARET) === here)
bonus += 1
@@ -3563,8 +3562,14 @@ function goto_command_activation() {
}
function goto_command() {
+ let here = get_lord_locale(game.command)
+
game.actions = data.lords[game.command].command
- if (lord_has_capability(game.command, AOW_YORK_THOMAS_BOURCHIER) && is_city(get_lord_locale(game.command)))
+
+ if (lord_has_capability(game.command, AOW_LANCASTER_MARRIED_TO_A_NEVILLE))
+ if (get_lord_locale(LORD_WARWICK_L) === here && is_friendly_locale(here))
+ game.actions += 1
+ if (lord_has_capability(game.command, AOW_YORK_THOMAS_BOURCHIER) && is_city(here))
game.actions += 1
if (lord_has_capability(game.command, AOW_YORK_YORKS_FAVOURED_SON))
game.actions += 1