summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-11-13 19:06:21 +0100
committerTor Andersson <tor@ccxvii.net>2024-11-13 19:06:21 +0100
commitad25fb8977c221c0913a48cce6e98f59ae8aaa50 (patch)
treebe6d40c1639180378f67ad5437a4848e91a19d9a /rules.js
parenta746170263e02374a3a0543bbe6944c5a0e71020 (diff)
downloadmaria-ad25fb8977c221c0913a48cce6e98f59ae8aaa50.tar.gz
ignore instead of pass for political tracks and effects
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/rules.js b/rules.js
index b68aef9..c53c6bf 100644
--- a/rules.js
+++ b/rules.js
@@ -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()