summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2025-03-01 12:51:53 +0100
committerTor Andersson <tor@ccxvii.net>2025-03-01 12:51:53 +0100
commit3ecd6f9f08db90faef216ea692809d34f3c1d5f7 (patch)
treea0d5356cc271de4608271d4a866d0891a883b0a5
parentafddd8e92c29e4818245adb54a20b53f6898e1a8 (diff)
downloadmaria-3ecd6f9f08db90faef216ea692809d34f3c1d5f7.tar.gz
Allow choosing how much to shift Saxony marker after battle.HEADmaster
-rw-r--r--rules.js12
1 files changed, 7 insertions, 5 deletions
diff --git a/rules.js b/rules.js
index 72f7a3e..13d080e 100644
--- a/rules.js
+++ b/rules.js
@@ -5272,14 +5272,16 @@ function should_saxony_shift_after_supply(pow) {
states.saxony_shift_battle = {
inactive: "shift Saxony marker",
prompt() {
- prompt(`Shift Saxony marker ${game.count} to the right.`)
- view.actions.shift_saxony = [ 1 ]
+ prompt(`Shift Saxony marker up to ${game.count} to the right.`)
+ view.actions.shift_saxony = []
+ for (let i = 1; i <= game.count; ++i)
+ view.actions.shift_saxony.push(i)
view.actions.ignore = 1
},
- shift_saxony(_) {
- log("Saxony marker " + game.count + " right.")
+ shift_saxony(n) {
+ log("Saxony marker " + n + " right.")
let save_saxony = game.saxony
- game.saxony = Math.max(1, Math.min(5, game.saxony + game.count))
+ game.saxony = Math.max(1, Math.min(5, game.saxony + n))
game.count = 0
// Saxony defection