diff options
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 27 |
1 files changed, 22 insertions, 5 deletions
@@ -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() { |