summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-06-02 11:44:41 +0200
committerTor Andersson <tor@ccxvii.net>2023-06-02 11:44:41 +0200
commit38683aadd4fdaa0c7256643ec566154d959fae34 (patch)
treee7767e3dbe2e5af0266ff5ffcce40a0878b4c20e
parentb5e5d8ff63e273e7be4f93e1f3721252607661aa (diff)
downloadred-flag-over-paris-38683aadd4fdaa0c7256643ec566154d959fae34.tar.gz
Fix card 26 and card 20.
-rw-r--r--events.txt1
-rw-r--r--rules.js6
2 files changed, 7 insertions, 0 deletions
diff --git a/events.txt b/events.txt
index 467fdbe..f5cef4a 100644
--- a/events.txt
+++ b/events.txt
@@ -125,6 +125,7 @@ CARD 19 - Walery Wroblewski
place_disc (where_present(PARIS))
CARD 20 - Banque de France
+ # must decrease momentum
decrease_revolutionary_momentum
prompt "Place up to 1 in Paris."
place_up_to 1 PARIS
diff --git a/rules.js b/rules.js
index ecddd49..9b3e051 100644
--- a/rules.js
+++ b/rules.js
@@ -444,6 +444,11 @@ function can_play_event(c) {
if (!has_versailles_cube(NATIONAL_ASSEMBLY))
return false
+ // Banque de France - must decrease red momentum
+ if (c === 20)
+ if (game.red_momentum < 1)
+ return false
+
// Le Reveil - cannot be played if Socialist Newspaper Ban
if (c === 21)
if (game.snb)
@@ -3861,6 +3866,7 @@ CODE[25] = [ // Paul Cluseret
CODE[26] = [ // Gaston Crémieux
[ vm_increase_revolutionary_momentum ],
+ [ vm_prompt, "Place up to 2 in Social Movements." ],
[ vm_place_up_to, 2, SOCIAL_MOVEMENTS ],
[ vm_return ],
]