summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-11-14 20:57:04 +0100
committerTor Andersson <tor@ccxvii.net>2024-11-14 20:57:04 +0100
commitec832e3278210f645b2a08f2f70e17fb032417c3 (patch)
tree4b62d34de1c46401e4c83da9f0e1ad2a7dd35218
parent15d6b224ad27bb269e5e2e2e1ab324e9f81efc7e (diff)
downloadmaria-ec832e3278210f645b2a08f2f70e17fb032417c3.tar.gz
war of jenkins ear: France -1 TC effect can be ignored.
-rw-r--r--rules.js27
1 files 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() {