diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-11-13 19:06:21 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-11-13 19:06:21 +0100 |
commit | ad25fb8977c221c0913a48cce6e98f59ae8aaa50 (patch) | |
tree | be6d40c1639180378f67ad5437a4848e91a19d9a | |
parent | a746170263e02374a3a0543bbe6944c5a0e71020 (diff) | |
download | maria-ad25fb8977c221c0913a48cce6e98f59ae8aaa50.tar.gz |
ignore instead of pass for political tracks and effects
-rw-r--r-- | play.js | 1 | ||||
-rw-r--r-- | rules.js | 16 |
2 files changed, 9 insertions, 8 deletions
@@ -1619,6 +1619,7 @@ function on_update() { action_button("execute", "Execute") action_button("discard", "Discard") + action_button("ignore", "Ignore") action_button("draw", "Draw") action_button("save", "Save") action_button("stop", "Stop") @@ -4857,7 +4857,7 @@ states.political_shift = { if (info.track === "italy") view.actions.shift_italy = info.amount } - view.actions.pass = 1 + view.actions.ignore = 1 view.pc = game.pc }, shift_italy(n) { this.shift(n) }, @@ -4873,7 +4873,7 @@ states.political_shift = { log(TRACK_NAME[info.track] + " " + (n) + " right.") next_execute_political_card() }, - pass() { + ignore() { push_undo() let info = event_shift[current_political_effect()] log("Did not shift " + TRACK_NAME[info.track] + ".") @@ -4892,7 +4892,7 @@ states.political_troop_power = { prompt(powers + " receives " + info.troops + ".") view.pc = game.pc view.actions.power = info.power() - view.actions.pass = 1 + view.actions.ignore = 1 }, power(pow) { let info = event_troops[current_political_effect()] @@ -4906,7 +4906,7 @@ states.political_troop_power = { goto_political_troops_place() } }, - pass() { + ignore() { let info = event_troops[current_political_effect()] if (info.tcs > 0) log("Did not receive TC and troops.") @@ -5052,7 +5052,7 @@ states.saxony_shift_battle = { prompt() { prompt(`Shift Saxony marker ${game.count} to the right.`) view.actions.shift_saxony = [ 1 ] - view.actions.pass = 1 + view.actions.ignore = 1 }, shift_saxony(_) { log("Saxony marker " + game.count + " right.") @@ -5068,7 +5068,7 @@ states.saxony_shift_battle = { else next_combat() }, - pass() { + ignore() { log("Did not shift Saxony marker.") game.count = 0 next_combat() @@ -5082,7 +5082,7 @@ states.saxony_shift_supply = { view.actions.shift_saxony = [] for (let i = 1; i <= game.count; ++i) view.actions.shift_saxony.push(i) - view.actions.pass = 1 + view.actions.ignore = 1 }, shift_saxony(n) { log("Saxony marker " + n + " right.") @@ -5098,7 +5098,7 @@ states.saxony_shift_supply = { else resume_supply() }, - pass() { + ignore() { log("Did not shift Saxony marker.") game.count = 0 resume_supply() |