From 38683aadd4fdaa0c7256643ec566154d959fae34 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 2 Jun 2023 11:44:41 +0200 Subject: Fix card 26 and card 20. --- events.txt | 1 + rules.js | 6 ++++++ 2 files changed, 7 insertions(+) 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 ], ] -- cgit v1.2.3