From b42c19db211dfb9dce41afd39be576f0a8d80222 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sat, 8 Mar 2025 16:53:03 +0100 Subject: Remove no-op "Move a Track" and "Turn on Bonus" buttons. --- rules.js | 54 ++++++++++-------------------------------------------- 1 file changed, 10 insertions(+), 44 deletions(-) (limited to 'rules.js') diff --git a/rules.js b/rules.js index 2400c09..abe0d7c 100644 --- a/rules.js +++ b/rules.js @@ -1655,49 +1655,27 @@ states.spend_hero_points = { return false; }, prompt() { - view.prompt = 'Spend your Hero points'; - const faction = get_active_faction(); - const { move_track, turn_on_bonus } = get_active_node_args(); - if (move_track) { - view.prompt = 'Spend Hero points: move a Track'; - } - else if (turn_on_bonus) { - view.prompt = 'Spend Hero points: turn on a Bonus'; - } - if (!(move_track || turn_on_bonus)) { - gen_action('done'); - } const hero_points = game.hero_points[get_active_faction()]; + view.prompt = `Spend up to ${hero_points} Hero Points.`; + const faction = get_active_faction(); + gen_action('done'); if (hero_points === 0) { return; } - if (!(move_track || turn_on_bonus)) { - gen_action('draw_card'); - if (can_use_medallion(data_1.ARCHIVES_MEDALLION_ID, faction)) { - gen_action('remove_blank_marker'); - } - if (can_use_medallion(data_1.VOLUNTEERS_MEDALLION_ID, faction)) { - gen_action('add_to_front'); - } + gen_action('draw_card'); + if (can_use_medallion(data_1.ARCHIVES_MEDALLION_ID, faction)) { + gen_action('remove_blank_marker'); + } + if (can_use_medallion(data_1.VOLUNTEERS_MEDALLION_ID, faction)) { + gen_action('add_to_front'); } if (hero_points < 2) { return; } - if (!(move_track || turn_on_bonus)) { - gen_action('move_track'); - } for (const bonus of bonuses) { - let bonus_off = false; - if (!move_track && game.bonuses[bonus] === data_1.OFF) { + if (game.bonuses[bonus] === data_1.OFF) { gen_action_bonus(bonus); - bonus_off = true; } - if (bonus_off && !turn_on_bonus) { - gen_action('turn_on_bonus'); - } - } - if (turn_on_bonus) { - return; } gen_action_standee(data_1.FOREIGN_AID); gen_action_standee(data_1.SOVIET_SUPPORT); @@ -1740,12 +1718,6 @@ states.spend_hero_points = { draw_hand_cards(faction, 1); next(); }, - move_track() { - update_active_node_args({ - move_track: true, - }); - next(); - }, remove_blank_marker() { const faction = get_active_faction(); if (game.used_medallions) { @@ -1782,12 +1754,6 @@ states.spend_hero_points = { ])); resolve_active_and_proceed(); }, - turn_on_bonus() { - update_active_node_args({ - turn_on_bonus: true, - }); - next(); - }, }; states.swap_card_tableau_hand = { inactive: 'swap cards', -- cgit v1.2.3