summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-04-18 23:06:16 +0200
committerTor Andersson <tor@ccxvii.net>2024-04-18 23:08:12 +0200
commitf5725b6f3433ae02c0f81931d0c0d13fd3a1f1d8 (patch)
tree275bc5d1e83d729986d39044cc60beb6aa2507b7
parent81f9603621165cd3089275dd212a1b320020a67c (diff)
downloadplantagenet-f5725b6f3433ae02c0f81931d0c0d13fd3a1f1d8.tar.gz
Remove redundant game.state === "parley" checks.
-rw-r--r--rules.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/rules.ts b/rules.ts
index ed7a7cf..d8fe55d 100644
--- a/rules.ts
+++ b/rules.ts
@@ -3151,7 +3151,7 @@ states.levy_muster_vassal = {
if (lord_has_capability(game.who, AOW_LANCASTER_TWO_ROSES)) {
log(`Automatic Success. C${AOW_LANCASTER_TWO_ROSES}.`)
}
- else if (game.active === LANCASTER && is_event_in_play(EVENT_LANCASTER_THE_EARL_OF_RICHMOND) && game.state === "levy_muster_vassal") {
+ else if (game.active === LANCASTER && is_event_in_play(EVENT_LANCASTER_THE_EARL_OF_RICHMOND)) {
log(`Automatic Success. C${EVENT_LANCASTER_THE_EARL_OF_RICHMOND}.`)
}
else {
@@ -4544,7 +4544,7 @@ states.parley = {
&& game.command === LORD_DEVON
&& get_lord_locale(LORD_DEVON) === LOC_EXETER
&& is_event_in_play(EVENT_YORK_DORSET)
- && game.state === "parley") {
+ ) {
log(`Parley at ${data.locales[game.where].name}. Automatic Success. C${EVENT_YORK_DORSET}.`)
}
else