From 3da77df81e8aed49a3c2935b7cc3ff1a735e7924 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 19 Mar 2025 23:22:55 +0100 Subject: Fix bugs. --- rules.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'rules.js') diff --git a/rules.js b/rules.js index 3f1c52c..30c59f9 100644 --- a/rules.js +++ b/rules.js @@ -37,7 +37,6 @@ const faction_cards = [ make_list(19, 36), make_list(1, 18), ]; -console.log(faction_cards); const fascist_decks = { 1: make_list(55, 72), 2: make_list(73, 90), @@ -311,7 +310,7 @@ function next(checkpoint = false) { const node = get_active_node(game.engine); if (node.t === function_node && engine_functions[node.f]) { const args = node.a; - if (args) { + if (args !== undefined) { engine_functions[node.f](args); } else { @@ -1474,7 +1473,7 @@ states.peek_fascist_cards = { inactive: 'peek at Fascist cards', prompt() { gen_spend_hero_points(); - view.prompt = 'Choose one card to return to the top of the deck'; + view.prompt = 'Return one card to the top of the Fascist deck.'; view.fascist_cards = game.fascist_cards; for (const c of game.fascist_cards) { gen_action_card(c); -- cgit v1.2.3