summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-01-03 23:00:53 +0100
committerTor Andersson <tor@ccxvii.net>2023-02-18 13:02:38 +0100
commit547f0a48eea3f4438cdc84e39ab5118aeb13914f (patch)
tree307407ae090d506b3a710aead96376269b8a288f
parentfcdc5e97494406570205a8f5abed8a3087f2ecaa (diff)
downloadnevsky-547f0a48eea3f4438cdc84e39ab5118aeb13914f.tar.gz
Allow not swapping lords in storming.
-rw-r--r--play.js1
-rw-r--r--rules.js4
2 files changed, 5 insertions, 0 deletions
diff --git a/play.js b/play.js
index a981407..b7286ed 100644
--- a/play.js
+++ b/play.js
@@ -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")
diff --git a/rules.js b/rules.js
index 17ae9b0..d766228 100644
--- a/rules.js
+++ b/rules.js
@@ -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 ===