From 8b8e940e42b6e8088eecd8f9a3bb004143e8ac62 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 13 Apr 2025 11:27:42 +0200 Subject: Add confirmation step for Mongol Invasion cards. --- rules.js | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) (limited to 'rules.js') diff --git a/rules.js b/rules.js index ca7dcf0..3d9fc37 100644 --- a/rules.js +++ b/rules.js @@ -564,7 +564,7 @@ function end_cavalry() { function goto_compromising_gifts() { if (game.inf[game.current] === 0) - end_card() + game.state = "end_mongol_invasion" else game.state = "compromising_gifts" } @@ -798,12 +798,12 @@ states.compromising_gifts = { } game.cav = { "n": 2, - "next": "end_card" + "next": "end_mongol_invasion" } remove_influence(f) }, end_gifts() { - end_card() + game.state = "end_mongol_invasion" } } @@ -915,10 +915,10 @@ states.rebel = { } states.strategic_assistance = { - inactive: "Strategic Assistance", + inactive: "Mongol Invasion", prompt() { - let n_command = (game.cmd.free === 2) ? "two" : "one" - view.prompt = `Strategic Assistance: ${faction_name[game.current]} must execute ${n_command} Mongol Invaders Commands.` + let n_command = (game.cmd.free === 2) ? "two Mongol Commands" : "one Mongol Command" + view.prompt = `Strategic Assistance: Carry out ${n_command}.` gen_mi_command() }, @@ -927,6 +927,17 @@ states.strategic_assistance = { mi_attack: goto_mi_attack, } +states.end_mongol_invasion = { + inactive: "Mongol Invasion", + prompt() { + view.prompt = "Mongol Invasion: Done." + view.actions.end_of_turn = 1 + }, + end_of_turn() { + end_card() + }, +} + states.tax = { inactive: "Tax", prompt() { @@ -2706,7 +2717,7 @@ function can_amass() { states.amass = { inactive: "Amass", prompt() { - view.prompt = "Amass: Place up to three Mongol Invaders in the Mountain Passes." + view.prompt = "Amass: Place three Mongol Invaders in the Mountain Passes." gen_action_space(S_MONGOL_INVADERS) }, -- cgit v1.2.3