diff options
author | Tor Andersson <tor@ccxvii.net> | 2025-03-08 16:53:03 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2025-03-08 17:00:19 +0100 |
commit | b42c19db211dfb9dce41afd39be576f0a8d80222 (patch) | |
tree | 5db212892a222239149ca859c58ed421f3ff9c5b /rules.js | |
parent | 9b0c7ffda8f4bf0f2e791a0821861ad14697d177 (diff) | |
download | land-and-freedom-b42c19db211dfb9dce41afd39be576f0a8d80222.tar.gz |
Remove no-op "Move a Track" and "Turn on Bonus" buttons.
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 54 |
1 files changed, 10 insertions, 44 deletions
@@ -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', |