diff options
author | Tor Andersson <tor@ccxvii.net> | 2025-03-19 23:22:55 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2025-03-19 23:35:48 +0100 |
commit | 3da77df81e8aed49a3c2935b7cc3ff1a735e7924 (patch) | |
tree | a093aba3904e4bc4a03041d548bde0282ae3ace8 /rules.ts | |
parent | 7ed5936e81547858673806c9092ff0b370a9e656 (diff) | |
download | land-and-freedom-3da77df81e8aed49a3c2935b7cc3ff1a735e7924.tar.gz |
Fix bugs.
Diffstat (limited to 'rules.ts')
-rw-r--r-- | rules.ts | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -119,8 +119,6 @@ const faction_cards = [ make_list(1, 18) as CardId[], ]; -console.log(faction_cards) - const fascist_decks = { 1: make_list(55, 72) as CardId[], 2: make_list(73, 90) as CardId[], @@ -470,7 +468,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 { engine_functions[node.f](); @@ -1808,7 +1806,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); |