From ec832e3278210f645b2a08f2f70e17fb032417c3 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 14 Nov 2024 20:57:04 +0100 Subject: war of jenkins ear: France -1 TC effect can be ignored. --- rules.js | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/rules.js b/rules.js index 852e6a1..c23b52b 100644 --- a/rules.js +++ b/rules.js @@ -4801,7 +4801,7 @@ const event_troops = { const event_misc = { "Mannheim to French control": goto_mannheim_to_french_control, "Pragmatic general to England": goto_pragmatic_general_to_england, - "France -1 TC this turn": goto_france_minus_tc_this_turn, + "France -1 TC this turn": goto_war_of_jenkins_ear, } function current_political_effect() { @@ -4995,10 +4995,27 @@ function goto_mannheim_to_french_control() { next_execute_political_card() } -function goto_france_minus_tc_this_turn() { - log("France -1 TC this turn.") - game.flags |= F_WAR_OF_JENKINS_EAR - next_execute_political_card() +function goto_war_of_jenkins_ear() { + game.state = "war_of_jenkins_ear" +} + +states.war_of_jenkins_ear = { + inactive: "execute political card", + prompt() { + prompt("France -1 TC this turn.") + view.actions.accept = 1 + view.actions.ignore = 1 + }, + accept() { + push_undo() + log("France -1 TC this turn.") + game.flags |= F_WAR_OF_JENKINS_EAR + next_execute_political_card() + }, + ignore() { + push_undo() + next_execute_political_card() + }, } function goto_pragmatic_general_to_england() { -- cgit v1.2.3