summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-11-27 23:34:42 +0100
committerTor Andersson <tor@ccxvii.net>2024-11-28 23:33:22 +0100
commit0d9f011545370e0122c82c4182177f4a1e698c2d (patch)
treef3dba710666cf9eea4acac380cc8954b190074e5
parentd501f674513c32aa63a31336beabacde1ea3fb58 (diff)
downloadmaria-0d9f011545370e0122c82c4182177f4a1e698c2d.tar.gz
Reword promise validation/confirmation prompts.
-rw-r--r--play.js10
-rw-r--r--rules.js40
2 files changed, 26 insertions, 24 deletions
diff --git a/play.js b/play.js
index e8b4a03..28b71da 100644
--- a/play.js
+++ b/play.js
@@ -1644,8 +1644,10 @@ function on_update() {
action_button("peace", "Peace")
action_button("accept", "Accept")
action_button("reject", "Reject")
- action_button("yes", "Yes")
- action_button("no", "No")
+
+ action_button("keep", "Kept")
+ confirm_action_button("break", "Broken",
+ "REWIND the game to force the player to keep their promise?\n\nP.S. Let them know why!")
action_button("re_enter", "Re-enter")
action_button("force_march", "Force march")
@@ -1666,10 +1668,10 @@ function on_update() {
action_button("resume", "Resume")
confirm_action_button("dispute", "Dispute",
- "Dispute order of movement on Flanders map and restart Austrian and Pragmatic Army movement phase?")
+ "Dispute order of movement on Flanders map and RESTART Austrian and Pragmatic Army movement phase?")
confirm_action_button("restart", "Restart",
- "Restart Austrian and Pragmatic Army movement phase?")
+ "RESTART the Austrian and Pragmatic Army movement phase?")
action_button("end_political_card", "End political card")
action_button("end_place_hussars", "End place hussars")
diff --git a/rules.js b/rules.js
index e0eb093..00d6ebe 100644
--- a/rules.js
+++ b/rules.js
@@ -6646,17 +6646,17 @@ function end_validate_politics() {
states.validate_politics = {
dont_snap: true,
- inactive: "validate promise",
+ inactive: "confirm that promises were kept",
prompt() {
let other = game.restart.power // icky hack to read power of the card executor
prompt("Did " + power_name[other] + " keep their politics promise?")
- view.actions.yes = 1
- view.actions.no = 1
+ view.actions.keep = 1
+ view.actions.break = 1
},
- yes() {
+ keep() {
resume_validate_politics()
},
- no() {
+ break() {
let other = game.power
restore_checkpoint()
game.proposal = other
@@ -6694,17 +6694,17 @@ function resume_validate_hussars() {
states.validate_hussars = {
dont_snap: true,
- inactive: "validate promise",
+ inactive: "confirm that promises were kept",
prompt() {
let other = current_sequence_of_play().power
prompt("Did " + power_name[other] + " keep their hussar promise?")
- view.actions.yes = 1
- view.actions.no = 1
+ view.actions.keep = 1
+ view.actions.break = 1
},
- yes() {
+ keep() {
resume_validate_hussars()
},
- no() {
+ break() {
let other = game.power
restore_checkpoint()
game.proposal = other
@@ -6748,17 +6748,17 @@ function resume_validate_movement() {
states.validate_movement = {
dont_snap: true,
- inactive: "validate promise",
+ inactive: "confirm that promises were kept",
prompt() {
let other = current_sequence_of_play().power
prompt("Did " + power_name[other] + " keep their movement promise?")
- view.actions.yes = 1
- view.actions.no = 1
+ view.actions.keep = 1
+ view.actions.break = 1
},
- yes() {
+ keep() {
resume_validate_movement()
},
- no() {
+ break() {
let other = game.power
restore_checkpoint()
game.proposal = other
@@ -6792,17 +6792,17 @@ function resume_validate_retreat() {
states.validate_retreat = {
dont_snap: true,
- inactive: "validate promise",
+ inactive: "confirm that promises were kept",
prompt() {
let other = current_sequence_of_play().power
prompt("Did " + power_name[other] + " keep their retreat promise?")
- view.actions.yes = 1
- view.actions.no = 1
+ view.actions.keep = 1
+ view.actions.break = 1
},
- yes() {
+ keep() {
resume_validate_retreat()
},
- no() {
+ break() {
let other = game.power
pop_undo()
game.proposal = other