diff options
author | iainp5 <iain.pearce.ip@gmail.com> | 2024-11-25 17:58:51 +0000 |
---|---|---|
committer | iainp5 <iain.pearce.ip@gmail.com> | 2024-11-25 17:58:51 +0000 |
commit | cc3314066f0715c19b7a5f7603419bbd89b2b2f4 (patch) | |
tree | c13c5c2e3800209247ba78683e4c8aeb52e1fb9b /rules.js | |
parent | eaeda929594ca9575a2dc367dfb3206d895370e4 (diff) | |
download | 1989-dawn-of-freedom-cc3314066f0715c19b7a5f7603419bbd89b2b2f4.tar.gz |
Limit We are the People to 2 infl per space
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -7573,6 +7573,7 @@ states.vm_we_are_the_people_remove = { if (game.vm_influence_added[S_LUTHERAN_CHURCH] === 4) { game.valid_spaces = [...S_EAST_GERMANY] game.vm_max_infl = 2 + game.vm_available_ops = 4 game.state = 'vm_we_are_the_people_add' } }, @@ -7585,6 +7586,7 @@ states.vm_we_are_the_people_remove = { } else { game.valid_spaces = [...S_EAST_GERMANY] game.vm_max_infl = 2 + game.vm_available_ops = game.vm_influence_added[S_LUTHERAN_CHURCH] game.state = 'vm_we_are_the_people_add' } } @@ -7594,15 +7596,15 @@ states.vm_we_are_the_people_add = { return `resolve ${clean_name(cards[game.played_card].name)}.` }, prompt() { - view.prompt = `"We are the People!": you must add the ${pluralize(game.vm_influence_added[S_LUTHERAN_CHURCH],'SP')} to spaces in Germany.` + view.prompt = `"We are the People!": you must add the ${pluralize(game.vm_available_ops,'SP')} to spaces in Germany.` for (let space_id of game.valid_spaces) { gen_action_space(space_id); } }, space(space) { vm_do_add_limited_infl(space, game.vm_max_infl ) - game.vm_influence_added[S_LUTHERAN_CHURCH]-- - if (game.vm_influence_added[S_LUTHERAN_CHURCH] === 0 ) { + game.vm_available_ops-- + if (game.vm_available_ops === 0 ) { game.valid_spaces = [] do_log_summary() vm_next() |