diff options
-rw-r--r-- | events.txt | 1 | ||||
-rw-r--r-- | rules.js | 21 |
2 files changed, 22 insertions, 0 deletions
@@ -43,6 +43,7 @@ CARD 7 - Général Espivent remove_up_to 2 SOCIAL_MOVEMENTS CARD 8 - Les Amis de l'Ordre + # must place 2 in paris spaces place 2 PARIS CARD 9 - Socialist Newspaper Ban @@ -380,6 +380,17 @@ function can_play_event(c) { if (game.active !== game.initiative) return false + // Les Amis de l'Ordre - must place 2 cubes in Paris + if (c === 8) { + if (count_available_versailles_cubes() < 2) + return false + let n = count_versailles_cubes(BUTTE_MONTMARTRE) + + count_versailles_cubes(BUTTE_AUX_CAILLES) + + count_versailles_cubes(PERE_LACHAISE) + if (n > 12 - 2) + return false + } + // Otto von Bismarck - must remove blue cube from National Assembly if (c === 12) if (!has_versailles_cube(NATIONAL_ASSEMBLY)) @@ -764,6 +775,16 @@ function find_available_cube(removed=0) { return -1 } +function count_available_versailles_cubes() { + return ( + count_versailles_cubes(BLUE_CUBE_POOL) + + count_versailles_cubes(BLUE_CRISIS_TRACK[0]) + + count_versailles_cubes(BLUE_CRISIS_TRACK[1]) + + count_versailles_cubes(BLUE_CRISIS_TRACK[2]) + + count_versailles_cubes(BLUE_CRISIS_TRACK[3]) + ) +} + function for_each_enemy_cube(s, f) { if (game.active === COMMUNE) for_each_versailles_cube(s, f) |