diff options
author | Tor Andersson <tor@ccxvii.net> | 2025-03-01 12:51:53 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2025-03-01 12:51:53 +0100 |
commit | 3ecd6f9f08db90faef216ea692809d34f3c1d5f7 (patch) | |
tree | a0d5356cc271de4608271d4a866d0891a883b0a5 | |
parent | afddd8e92c29e4818245adb54a20b53f6898e1a8 (diff) | |
download | maria-3ecd6f9f08db90faef216ea692809d34f3c1d5f7.tar.gz |
-rw-r--r-- | rules.js | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -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 |