diff options
-rw-r--r-- | rules.js | 14 |
1 files changed, 1 insertions, 13 deletions
@@ -1096,7 +1096,7 @@ states.the_crowd_turns_against_ceausescu_prep = { game.temp = game.ceausescu_cards.filter(card => rallies.includes(card)).length log(`Drew ${pluralize(game.temp, 'Rally in the Square')}.`) game.vm_available_ops = game.temp * 3 - log(`Democrat takes a ${game.vm_available_ops} Action Round`) + log(`Democrat takes a ${game.vm_available_ops} Op Action Round`) game.state = 'vm_the_crowd_turns_against_ceausescu' } } @@ -1298,8 +1298,6 @@ states.power_struggle = { } }, power_card(card) { - console.log('game.phase', game.phase, 'game.played_power_card', game.played_power_card) - if(game.proxy_power_card) {console.log('game.proxy_power_card', game.proxy_power_card)} push_undo() discard(card) if (game.phase === 0) { @@ -2408,7 +2406,6 @@ function valid_spaces_infl() { function valid_cards(player_hand, presence) { const valid_cards_set = new Set() - console.log('game.phase', game.phase, 'game.tactics_fails', game.tactics_fails) if (game.phase === 0) { for (let c of player_hand) { @@ -4171,7 +4168,6 @@ function vm_valid_spaces_country_opp () { country = game.vm_active_country } for (let space of spaces) { - if (!space) continue if (game.active === DEM) { if (space.country === country && game.comInfl[space.space_id] >0) { game.valid_spaces.push(space.space_id); @@ -4199,7 +4195,6 @@ function vm_valid_spaces_country_sc () { function vm_valid_spaces_country_socio_2() { for (let space of spaces) { - if (!space) continue if (space.space_id === game.systematization) continue if ((space.country === vm_operand(1) && space.socio === vm_operand(2)) || (space.country === vm_operand(1) && space.socio === vm_operand(3))) { game.valid_spaces.push(space.space_id); @@ -4211,7 +4206,6 @@ function vm_valid_spaces_country_socio_2() { function vm_valid_spaces_region_socio() { let valid_spaces = [] for (let space of spaces) { - if (!space) continue if (space.space_id === game.systematization) continue if (space.region === vm_operand(1) && space.socio === vm_operand(2)) { valid_spaces.push(space.space_id); @@ -4224,7 +4218,6 @@ function vm_valid_spaces_region_socio() { function vm_valid_spaces_region_opp() { let valid_spaces = [] for (let space of spaces) { - if (!space) continue let s = space.space_id if ((game.active === DEM && space.region === vm_operand(1) && game.comInfl[s] > 0 ) || (game.active === COM && space.region === vm_operand(1) && game.demInfl[s] > 0 )) { valid_spaces.push(space.space_id); @@ -5298,7 +5291,6 @@ function vm_we_are_the_people() { function vm_workers_revolt() { if (game.active === DEM) { for (let space of spaces) { - if (!space) continue let country = space.country if (!game.revolutions[find_country_index(country)] && game.comInfl[space.space_id] > 0 && space.socio === 4) { game.valid_spaces.push(space.space_id); @@ -5306,7 +5298,6 @@ function vm_workers_revolt() { } } else { for (let space of spaces) { - if (!space) continue let country = space.country if (game.revolutions[find_country_index(country)] && game.demInfl[space.space_id] > 0 && space.socio === 4) { game.valid_spaces.push(space.space_id); @@ -5735,7 +5726,6 @@ states.vm_support_check_prep = { } else { view.prompt = `${clean_name(cards[this_card()].name)}: ${event_prompt()}. ${pluralize(game.vm_available_ops, 'support check')} remaining.` for (let space_id of game.valid_spaces) { - if (!space_id) continue gen_action_space(space_id); } } @@ -5844,7 +5834,6 @@ states.vm_1_support_check_prep = { } else { view.prompt = `${clean_name(cards[this_card()].name)}: ${event_prompt()}.` for (let space_id of game.valid_spaces) { - if (!space_id) continue gen_action_space(space_id); } } @@ -6949,7 +6938,6 @@ states.vm_nomenklatura = { push_undo() game.valid_spaces = [] for (let space of spaces) { - if (!space) continue if (space.socio === 1) { game.valid_spaces.push(space.space_id) } |