diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-04-16 20:03:40 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-04-16 20:03:40 +0200 |
commit | 5fd62dcf90afb79fe8b6898efce18ef00ef95fc3 (patch) | |
tree | a2722dfe874dd2a94c8f0e77e9e1aa64b21b49fe | |
parent | 165de595461086ff3184e69484b5038d3cf9e660 (diff) | |
download | plantagenet-5fd62dcf90afb79fe8b6898efce18ef00ef95fc3.tar.gz |
Rename reset_flags to reset_flags_for_muster.
-rw-r--r-- | rules.js | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -5,6 +5,8 @@ // Check all push/clear_undo // TODO: check flank attack +// TODO: clean up use of who/what/which/where -- explicit selected_lord, selected_vassal, etc? + let game = null let view = null let states = {} @@ -2359,7 +2361,7 @@ function goto_ready_vassals() { // === 3.4 MUSTER === -function reset_flags() { +function reset_flags_for_muster() { // to avoid some flags affecting campaign game.flags.jack_cade = 0 game.flags.parliament_votes = 0 @@ -2453,7 +2455,7 @@ states.levy_muster = { push_state("levy_muster_lord") game.who = lord game.count = data.lords[lord].lordship - reset_flags() + reset_flags_for_muster() lordship_effects(lord) }, end_muster() { @@ -2551,6 +2553,7 @@ states.levy_muster_lord = { view.actions.parley = 1 } } + if (is_event_in_play(EVENT_YORK_LOYALTY_AND_TRUST) && game.flags.loyalty_and_trust) { view.actions.loyalty_and_trust = 1 } |