summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-04-24 23:29:00 +0200
committerTor Andersson <tor@ccxvii.net>2024-04-24 23:29:00 +0200
commit0216bd0d8433519328c5902d134f8ea6e9870aa1 (patch)
tree219d96e122136730d992724048acd85cab55e9be
parent796717d7df62d0e8cecea280e1c22f777661c8a4 (diff)
downloadplantagenet-0216bd0d8433519328c5902d134f8ea6e9870aa1.tar.gz
the king's name
-rw-r--r--rules.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/rules.ts b/rules.ts
index 6e8e042..312aaac 100644
--- a/rules.ts
+++ b/rules.ts
@@ -2900,18 +2900,21 @@ states.muster_lord = {
lord(lord) {
push_undo()
+ push_the_kings_name()
game.who = lord
game.state = "levy_lord"
},
vassal(vassal) {
push_undo()
+ push_the_kings_name()
game.vassal = vassal
game.state = "levy_vassal"
},
take_ship() {
push_undo()
+ push_the_kings_name()
if (can_naval_blockade(get_lord_locale(game.command)))
game.state = "blockade_levy_ship"
else
@@ -11420,10 +11423,7 @@ states.earl_rivers = {
// === EVENT (AS LEVY EFFECT): THE KINGS NAME ===
function eligible_kings_name() {
- if (
- (!is_lord_on_calendar(LORD_GLOUCESTER_1) && is_lord_on_map(LORD_GLOUCESTER_1)) ||
- (!is_lord_on_calendar(LORD_GLOUCESTER_2) && is_lord_on_map(LORD_GLOUCESTER_2))
- ) {
+ if (is_lord_on_map(LORD_GLOUCESTER_1) || is_lord_on_map(LORD_GLOUCESTER_2)) {
if (is_event_in_play(EVENT_YORK_THE_KINGS_NAME) && game.active === LANCASTER)
return true
}
@@ -11436,7 +11436,7 @@ function push_the_kings_name() {
}
function goto_the_kings_name(_action_name) {
- if (eligible_kings_name()) {
+ if (game.event_the_kings_name !== undefined) {
// TODO: pause for confirmation before changing control?
set_active_enemy()
game.state = "the_kings_name"