diff options
author | iainp5 <iain.pearce.ip@gmail.com> | 2024-11-29 08:36:26 +0000 |
---|---|---|
committer | iainp5 <iain.pearce.ip@gmail.com> | 2024-11-29 08:36:26 +0000 |
commit | d72ec64d99b7403d5ba7ae43ee3138e5886c6027 (patch) | |
tree | eb950eed3371e8d97f9e251b8f31e5d7e0f36b63 /rules.js | |
parent | e0cf646f87f832e382603a45db4fbf8aebc21da7 (diff) | |
download | 1989-dawn-of-freedom-d72ec64d99b7403d5ba7ae43ee3138e5886c6027.tar.gz |
Consistent capitalisation of Support Check
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 102 |
1 files changed, 51 insertions, 51 deletions
@@ -713,7 +713,7 @@ states.play_card = { support_check() { push_undo() check_ligachev_non_event() - log_gap(`Played C${game.played_card} for support checks`) + log_gap(`Played C${game.played_card} for Support Checks`) finish_play_card() game.available_ops = 2 game.state = 'support_check_prep' @@ -780,7 +780,7 @@ states.resolve_opponent_event = { support_check() { push_undo() check_ligachev_non_event() - log_gap(`Played C${game.played_card} for support checks`) + log_gap(`Played C${game.played_card} for Support Checks`) game.available_ops = 2 game.state = 'support_check_prep' valid_spaces_sc() @@ -955,21 +955,21 @@ states.tst_goddess_draw = { } states.support_check_prep = { - inactive: 'do support checks', + inactive: 'do Support Checks', prompt() { if (game.available_ops === 0) { if (game.is_pwr_struggle) { - view.prompt = 'The Crowd Turns Against Ceausescu. Support checks: done.' + view.prompt = 'The Crowd Turns Against Ceausescu. Support Checks: done.' gen_action('done') } else if (!game.vm_event_to_do) { - view.prompt = 'Support checks: done.' + view.prompt = 'Support Checks: done.' gen_action('end_round') } else { - view.prompt = 'Support checks: done.' + view.prompt = 'Support Checks: done.' gen_action('done') } } else if (game.available_ops > 0) { - view.prompt = `Select a space. ${pluralize(game.available_ops, 'support check')} remaining.` + view.prompt = `Select a space. ${pluralize(game.available_ops, 'Support Check')} remaining.` for (let space_id of game.valid_spaces) { gen_action_space(space_id) } @@ -979,7 +979,7 @@ states.support_check_prep = { push_undo() game.selected_space = space - // Check for Austria-Hungary Border Reopened - check on first support check only + // Check for Austria-Hungary Border Reopened - check on first Support Check only if (game.persistent_events.includes(58)) { if (game.active === DEM && game.available_ops > 1) { if ( @@ -1016,9 +1016,9 @@ states.support_check_prep = { } states.do_support_check = { - inactive: 'do support checks.', + inactive: 'do Support Checks.', prompt() { - view.prompt = `Support check: ${spaces[game.selected_space].name_unique}. Roll a die.` + view.prompt = `Support Check: ${spaces[game.selected_space].name_unique}. Roll a die.` gen_action('roll') }, roll() { @@ -1040,7 +1040,7 @@ states.do_support_check = { states.austria_hungary_border_reopened_check = { inactive: 'decide Austria-Hungary Border Reopened.', prompt() { - view.prompt = 'Austria-Hungary Border Reopened: will both support checks be in East Germany?' + view.prompt = 'Austria-Hungary Border Reopened: will both Support Checks be in East Germany?' gen_action('yes') gen_action('no') }, @@ -2245,7 +2245,7 @@ function do_sc(space) { clear_undo() let tear_gas_start = game.persistent_events.includes(C_TEAR_GAS) let the_wall_start = game.persistent_events.includes(C_THE_WALL) - log_gap(`Support check: %${space}`) + log_gap(`Support Check: %${space}`) let roll = roll_d6() // Check for The Wall @@ -2361,7 +2361,7 @@ function do_sc(space) { } } - // Support check calcs + // Support Check calcs log(`Modified roll: ${roll}`) const stability = spaces[space].stability logi(`-${stability*2} (stability * 2)`) @@ -2420,7 +2420,7 @@ function do_sc(space) { log(`C${C_THE_WALL} no longer in effect`) } - // If Austria-Hungary Border Reopened used, all future support checks must be in East Germany + // If Austria-Hungary Border Reopened used, all future Support Checks must be in East Germany if (game.persistent_events.includes(C_AUSTRIA_HUNGARY_BORDER_REOPENED)) { if (game.austria_hungary_border_reopened_tracker) { game.valid_spaces = game.valid_spaces.filter(n => spaces[n].country === 'East_Germany') @@ -2462,7 +2462,7 @@ function valid_spaces_sc() { } else { let infl = game.demInfl[i] if (infl !== 0) { - // Check Events that block support checks in a given space + // Check Events that block Support Checks in a given space if (game.persistent_events.includes(C_SOLIDARITY_LEGALIZED) && space.space_id === S_GDANSK) { continue } @@ -5111,13 +5111,13 @@ function vm_domino_theory_pass() { function vm_eco_glasnost() { add_to_persistent_events(C_ECO_GLASNOST) - logi(`+1 VP for Communist support checks in Ruse for the rest of the game`) + logi(`+1 VP for Communist Support Checks in Ruse for the rest of the game`) vm_next() } function vm_elena() { add_to_persistent_events(C_ELENA) - logi(`-1 modifier to Democratic Support checks in Romania for the rest of this turn`) + logi(`-1 modifier to Democratic Support Checks in Romania for the rest of this turn`) vm_next() } @@ -5816,7 +5816,7 @@ function vm_tst_4() { function vm_tst_6() { log_h3('Tiananmen Square Track Award') game.vm_available_ops = 1 - game.temp = 1 // Set temp to 1, so that Card 1 is called during the support check, which has 2 ops + game.temp = 1 // Set temp to 1, so that Card 1 is called during the Support Check, which has 2 ops game.state = 'vm_tst_6' } @@ -6189,16 +6189,16 @@ states.vm_remove_all_infl = { } states.vm_support_check_prep = { - inactive: 'do support checks.', + inactive: 'do Support Checks.', prompt() { if (game.valid_spaces.length === 0) { - view.prompt = `${clean_name(cards[this_card()].name)}: no valid targets for support check.` + view.prompt = `${clean_name(cards[this_card()].name)}: no valid targets for Support Check.` gen_action('done') } else { if (event_prompt() === "") { - view.prompt = `${clean_name(cards[this_card()].name)}: select a space. ${pluralize(game.vm_available_ops, 'support check')} remaining.` + view.prompt = `${clean_name(cards[this_card()].name)}: select a space. ${pluralize(game.vm_available_ops, 'Support Check')} remaining.` } else { - view.prompt = `${clean_name(cards[this_card()].name)}: ${event_prompt()}. ${pluralize(game.vm_available_ops, 'support check')} remaining.` + 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) { gen_action_space(space_id) @@ -6209,8 +6209,8 @@ states.vm_support_check_prep = { push_undo() game.selected_space = space - // Check for Austria-Hungary Border Reopened - check on first support check only - // First check for Monday Demonstrations - support checks will always be in East Germany + // Check for Austria-Hungary Border Reopened - check on first Support Check only + // First check for Monday Demonstrations - Support Checks will always be in East Germany if ( game.vm_event === C_THE_MONDAY_DEMONSTRATIONS && game.persistent_events.includes(C_AUSTRIA_HUNGARY_BORDER_REOPENED) @@ -6243,10 +6243,10 @@ states.vm_support_check_prep = { } states.vm_ceh_support_check_prep = { - inactive: 'do support checks.', + inactive: 'do Support Checks.', prompt() { if (game.vm_available_ops > 0) { - view.prompt = `Select a space. ${pluralize(game.vm_available_ops, 'support check')} remaining.` + view.prompt = `Select a space. ${pluralize(game.vm_available_ops, 'Support Check')} remaining.` for (let space_id of game.valid_spaces) { gen_action_space(space_id) @@ -6275,9 +6275,9 @@ states.vm_ceh_support_check_prep = { } states.vm_ceh_do_support_check = { - inactive: 'do support checks.', + inactive: 'do Support Checks.', prompt() { - view.prompt = `Support check: ${spaces[game.selected_space].name_unique}. Roll a die.` + view.prompt = `Support Check: ${spaces[game.selected_space].name_unique}. Roll a die.` gen_action('roll') }, roll() { @@ -6297,7 +6297,7 @@ states.vm_ceh_do_support_check = { states.vm_austria_hungary_border_reopened_check = { inactive: 'decide Austria-Hungary Border Reopened', prompt() { - view.prompt = 'Austria-Hungary Border Reopened: will all support checks be in East Germany?' + view.prompt = 'Austria-Hungary Border Reopened: will all Support Checks be in East Germany?' gen_action('yes') gen_action('no') }, @@ -6311,10 +6311,10 @@ states.vm_austria_hungary_border_reopened_check = { } states.vm_1_support_check_prep = { - inactive: 'do support checks.', + inactive: 'do Support Checks.', prompt() { if (game.valid_spaces.length === 0) { - view.prompt = `${clean_name(cards[this_card()].name)}: no valid targets for support check.` + view.prompt = `${clean_name(cards[this_card()].name)}: no valid targets for Support Check.` gen_action('done') } else { view.prompt = `${clean_name(cards[this_card()].name)}: ${event_prompt()}.` @@ -6336,9 +6336,9 @@ states.vm_1_support_check_prep = { } states.vm_do_support_check = { - inactive: 'do support checks.', + inactive: 'do Support Checks.', prompt() { - view.prompt = `Support check: ${spaces[game.selected_space].name_unique}. Roll a die.` + view.prompt = `Support Check: ${spaces[game.selected_space].name_unique}. Roll a die.` gen_action('roll') }, roll() { @@ -6553,7 +6553,7 @@ states.vm_common_european_home_play = { }, support_check() { push_undo() - log_gap(`Played C${game.vm_event} for support checks`) + log_gap(`Played C${game.vm_event} for Support Checks`) game.vm_available_ops = 2 game.state = 'vm_ceh_support_check_prep' valid_spaces_sc() @@ -6711,7 +6711,7 @@ states.vm_deutsche_marks = { }, support_check() { push_undo() - log_gap(`Played C${game.vm_event} for support checks`) + log_gap(`Played C${game.vm_event} for Support Checks`) game.vm_available_ops = 2 game.state = 'vm_support_check_prep' valid_spaces_sc() @@ -6789,7 +6789,7 @@ states.vm_foreign_currency_debt_burden = { return `resolve ${clean_name(cards[game.played_card].name)}.` }, prompt() { - view.prompt = 'Choose a country. The Communist may not make support checks there for the rest of the turn.' + view.prompt = 'Choose a country. The Communist may not make Support Checks there for the rest of the turn.' gen_action('east_germany') gen_action('poland') gen_action('czechoslovakia') @@ -7014,7 +7014,7 @@ states.vm_inflationary_currency_discard = { view.prompt = 'Inflationary Currency: no valid cards to discard. You must pass.' gen_action('pass') } else { - view.prompt = 'Inflationary Currency: you may discard a 3 op or higher value card to cancel the support check.' + view.prompt = 'Inflationary Currency: you may discard a 3 op or higher value card to cancel the Support Check.' gen_action('pass') for (let card of game.valid_cards) { gen_action_card(card) @@ -7216,7 +7216,7 @@ states.vm_kremlin_coup_sc_prep = { return `resolve ${clean_name(cards[game.played_card].name)}.` }, prompt() { - view.prompt = `Kremlin Coup! Conduct a support check in ${country_name(game.vm_active_country)}'s Bureaucratic space.` + view.prompt = `Kremlin Coup! Conduct a Support Check in ${country_name(game.vm_active_country)}'s Bureaucratic space.` gen_action_space(game.selected_space) }, space(_space) { @@ -7226,9 +7226,9 @@ states.vm_kremlin_coup_sc_prep = { } states.vm_kremlin_coup_sc = { - inactive: 'do support checks', + inactive: 'do Support Checks', prompt() { - view.prompt = `Support check: ${spaces[game.selected_space].name_unique}. Roll a die.` + view.prompt = `Support Check: ${spaces[game.selected_space].name_unique}. Roll a die.` gen_action('roll') }, roll() { @@ -7723,7 +7723,7 @@ states.vm_the_chinese_solution = { return `resolve ${clean_name(cards[game.played_card].name)}.` }, prompt() { - view.prompt = 'The Chinese Solution: you may give up 3 VP to conduct support checks in a country where you hold power.' + view.prompt = 'The Chinese Solution: you may give up 3 VP to conduct Support Checks in a country where you hold power.' if (!game.revolutions[0]) {gen_action('poland')} if (!game.revolutions[1]) {gen_action('hungary')} if (!game.revolutions[2]) {gen_action('east_germany')} @@ -7800,7 +7800,7 @@ states.vm_the_chinese_solution = { }, pass() { push_undo() - logi(`Chose not to conduct support checks`) + logi(`Chose not to conduct Support Checks`) permanently_remove(C_THE_CHINESE_SOLUTION) vm_return() }, @@ -7906,7 +7906,7 @@ states.vm_warsaw_pact_summit = { return `resolve ${clean_name(cards[game.played_card].name)}.` }, prompt() { - view.prompt = 'Choose to play for support checks or place SPs.' + view.prompt = 'Choose to play for Support Checks or place SPs.' gen_action('influence') gen_action('support_check') }, @@ -8139,9 +8139,9 @@ states.vm_tst_4 = { } states.vm_tst_6 = { - inactive: 'make their free support check.', + inactive: 'make their free Support Check.', prompt() { - view.prompt = 'Tiananmen Square Track award: you have a free 2 Ops support check.' + view.prompt = 'Tiananmen Square Track award: you have a free 2 Ops Support Check.' for (let space_id of game.valid_spaces) { if (space_id) { gen_action_space(space_id) @@ -8163,9 +8163,9 @@ states.vm_tst_6 = { } states.vm_tst_6_sc = { - inactive: 'do support check.', + inactive: 'do Support Check.', prompt() { - view.prompt = `Support check: ${spaces[game.selected_space].name_unique}. Roll a die` + view.prompt = `Support Check: ${spaces[game.selected_space].name_unique}. Roll a die` gen_action('roll') }, roll() { @@ -8619,7 +8619,7 @@ CODE[27] = [ // Consumerism [ vm_remove_opp_infl, 1 ], [ vm_valid_spaces_opponent_socio, 4 ], [ vm_active_country ], - [ vm_prompt, ()=>`make a support check in a Worker space in ${country_name(game.vm_active_country)}` ], + [ vm_prompt, ()=>`make a Support Check in a Worker space in ${country_name(game.vm_active_country)}` ], [ vm_1_support_check ], [ vm_return ], ] @@ -8739,7 +8739,7 @@ CODE[41] = [ // Ceausescu* [ vm_prompt, ' from Romania' ], [ vm_remove_opp_infl, 3 ], [ vm_valid_spaces_country_sc, 'Romania' ], - [ vm_prompt, 'make a support check in Romania' ], + [ vm_prompt, 'make a Support Check in Romania' ], [ vm_1_support_check ], [ vm_prompt, ' from Bucharesti' ], [ vm_ceausescu ], @@ -9082,7 +9082,7 @@ CODE[84] = [ // Breakaway Baltic Republics* [ vm_prompt, 'any Minorities space' ], [ vm_take_control_prep, 1 ], [ vm_valid_spaces_sc ], - [ vm_prompt, 'select a space for the support check' ], + [ vm_prompt, 'select a space for the Support Check' ], [ vm_1_support_check ], [ vm_return ], ] @@ -9221,7 +9221,7 @@ CODE[98] = [ // Politburo Intrigue* [ vm_prompt, ' from Bulgaria' ], [ vm_remove_limited_opp_infl, 3, 2 ], [ vm_valid_spaces_country_sc, 'Bulgaria' ], - [ vm_prompt, 'make a support check in Bulgaria' ], + [ vm_prompt, 'make a Support Check in Bulgaria' ], [ vm_1_support_check ], [ vm_endif ], [ vm_return ], |