From 13e67eb054578b5a625b05aa5a9400f8b9fe7f2e Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 11 Mar 2025 00:13:19 +0100 Subject: Rename "add strength to a Front" to "Support a Front". Matches terminology used in rulebook. --- rules.ts | 34 +++++++++++++++------------------- 1 file changed, 15 insertions(+), 19 deletions(-) diff --git a/rules.ts b/rules.ts index f4b1962..8483f6a 100644 --- a/rules.ts +++ b/rules.ts @@ -901,7 +901,7 @@ states.add_card_to_tableau = { inactive: 'add a card to their tableau', prompt() { gen_spend_hero_points(); - view.prompt = 'Choose a card to add to your tableau'; + view.prompt = 'Choose a card to add to your tableau.'; const faction = get_active_faction(); for (const c of game.hands[faction]) { gen_action_card(c); @@ -932,7 +932,7 @@ states.add_glory = { inactive: 'add tokens to the Bag of Glory', prompt() { gen_spend_hero_points(); - view.prompt = 'Add tokens to the Bag of Glory'; + view.prompt = 'Add tokens to the Bag of Glory.'; gen_action('add_glory'); }, spend_hp() { @@ -949,21 +949,16 @@ states.add_glory = { }; states.add_to_front = { - inactive: 'add strength to a Front', + inactive: 'support a Front', prompt() { gen_spend_hero_points(); const args = get_active_node_args(); const possible_fronts = get_fronts_to_add_to(args.t); - - const number_of_fronts = possible_fronts.length; - - if (number_of_fronts === 0) { - view.prompt = 'No valid front to target. You must skip'; + if (possible_fronts.length === 0) { + view.prompt = 'No valid front to add strength to.' gen_action('skip'); - } else if (number_of_fronts === 1) { - view.prompt = `Add strength to ${front_names[possible_fronts[0]]}`; } else { - view.prompt = 'Add strength to a Front'; + view.prompt = `Support ${join_oxford_comma(possible_fronts.map(x => front_names[x]), 'or')}.`; } for (let f of possible_fronts) { @@ -987,18 +982,16 @@ states.attack_front = { inactive: 'attack a Front', prompt() { gen_spend_hero_points(); - const { t: target, n, src } = get_active_node_args(); + const { t: target, n } = get_active_node_args(); const possible_fronts = get_fronts_to_add_to(target, n); const number_of_fronts = possible_fronts.length; if (number_of_fronts === 0) { - view.prompt = 'No valid front to target. You must skip'; + view.prompt = 'No valid front to attack.'; gen_action('skip'); - } else if (number_of_fronts === 1) { - view.prompt = `Attack ${front_names[possible_fronts[0]]}`; } else { - view.prompt = 'Attack a Front'; + view.prompt = `Attack ${join_oxford_comma(possible_fronts.map(x => front_names[x]), 'or')}.`; } possible_fronts.forEach((id) => gen_action('front', id)); @@ -1603,7 +1596,10 @@ states.move_track = { ? 'Liberty OR Collectivization' : tracks[track].name; - view.prompt = `Move ${name} ${value > 0 ? 'up' : 'down'}`; + if (value > 0) + view.prompt = `Move ${name} +${value} steps.`; + else + view.prompt = `Move ${name} \u2212${-value} steps.`; if (track === GOVERNMENT && value === TOWARDS_CENTER) { view.prompt = `Move ${name} towards center`; } else if (track === GOVERNMENT && value === AWAY_FROM_CENTER) { @@ -1993,8 +1989,8 @@ states.remove_attack_from_fronts = { const { f, v: card_id } = get_active_node_args(); view.prompt = card_id === 6 - ? 'Choose a Front to remove an attack from' - : 'Choose a Front to remove attacks from'; + ? 'Remove an attack from a Front.' + : 'Remove attacks from a Front.'; const front_data = f ?? {}; let is_front_with_attacks = false; -- cgit v1.2.3