diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-04-18 23:06:16 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-04-18 23:08:12 +0200 |
commit | f5725b6f3433ae02c0f81931d0c0d13fd3a1f1d8 (patch) | |
tree | 275bc5d1e83d729986d39044cc60beb6aa2507b7 | |
parent | 81f9603621165cd3089275dd212a1b320020a67c (diff) | |
download | plantagenet-f5725b6f3433ae02c0f81931d0c0d13fd3a1f1d8.tar.gz |
Remove redundant game.state === "parley" checks.
-rw-r--r-- | rules.ts | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |