diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-06-05 11:54:40 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-06-05 11:54:40 +0200 |
commit | 191527069eed2f7b9afafab025f59c73ee3bd23b (patch) | |
tree | 257e2765c733e215c014974b578707f335ce4297 /rules.js | |
parent | bc3e6882e21acd7e92631111d9b5862fb28cf457 (diff) | |
download | red-flag-over-paris-191527069eed2f7b9afafab025f59c73ee3bd23b.tar.gz |
Updated ruling for Aux Barricades and Issy Village objective events.
If Versailles wins, shouldn't allow Commune to place Barricade, etc.
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 12 |
1 files changed, 4 insertions, 8 deletions
@@ -2644,12 +2644,6 @@ function vm_case() { } } -function vm_player() { - // TODO: pause for undo? - game.active = vm_operand(1) - vm_next() -} - function vm_ops() { goto_operations(vm_operand(1), vm_operand_spaces(2)) } @@ -4031,9 +4025,10 @@ CODE[42] = [ // Paris Cannons CODE[43] = [ // Aux Barricades! [ vm_ops, 2, PARIS ], - [ vm_player, COMMUNE ], + [ vm_if, ()=>(game.active === COMMUNE) ], [ vm_prompt, "You may place a Barricade in Butte-aux-Cailles." ], [ vm_may_place_disc, BUTTE_AUX_CAILLES ], + [ vm_endif ], [ vm_return ], ] @@ -4051,9 +4046,10 @@ CODE[44] = [ // Commune's Stronghold CODE[45] = [ // Fighting in Issy Village [ vm_ops, 2, FORTS ], - [ vm_player, VERSAILLES ], + [ vm_if, ()=>(game.active === VERSAILLES) ], [ vm_prompt, "You may place a Fortification in Fort d'Issy." ], [ vm_may_place_disc, FORT_D_ISSY ], + [ vm_endif ], [ vm_return ], ] |