diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-01-03 23:00:53 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-02-18 13:02:38 +0100 |
commit | 547f0a48eea3f4438cdc84e39ab5118aeb13914f (patch) | |
tree | 307407ae090d506b3a710aead96376269b8a288f | |
parent | fcdc5e97494406570205a8f5abed8a3087f2ecaa (diff) | |
download | nevsky-547f0a48eea3f4438cdc84e39ab5118aeb13914f.tar.gz |
Allow not swapping lords in storming.
-rw-r--r-- | play.js | 1 | ||||
-rw-r--r-- | rules.js | 4 |
2 files changed, 5 insertions, 0 deletions
@@ -1582,6 +1582,7 @@ function on_update() { action_button("end_plow_and_reap", "End plow and reap") action_button("end_ransom", "End ransom") action_button("end_remove", "End remove") + action_button("end_reposition", "End reposition") action_button("end_sally", "End sally") action_button("end_setup", "End setup") action_button("end_spoils", "End spoils") @@ -6780,6 +6780,7 @@ states.reposition_storm = { for (let lord of game.battle.reserves) if (is_friendly_lord(lord) && lord !== game.who) gen_action_lord(lord) + view.action.end_reposition = 1 }, lord(lord) { log(`Swapped in L${lord}.`) @@ -6793,6 +6794,9 @@ states.reposition_storm = { } end_reposition_storm() }, + end_reposition() { + end_reposition_storm() + }, } // === BATTLE: TOTAL HITS === |