From fc2d86ac2f7364161777114109cd5971175d1190 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sat, 13 Apr 2024 22:40:02 +0200 Subject: Add missing argument to is_card_in_scenario. --- rules.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rules.js b/rules.js index 63c44ed..2b6a767 100644 --- a/rules.js +++ b/rules.js @@ -1037,7 +1037,7 @@ function remove_card_scenario(c) { //TODO: Remove card in scenario } -function is_card_in_scenario() { +function is_card_in_scenario(_c) { // TODO: Cards setup return true } @@ -1047,7 +1047,7 @@ function list_deck() { let first_card = game.active === YORK ? first_york_card : first_lancaster_card let last_card = game.active === YORK ? last_york_card : last_lancaster_card for (let c = first_card; c <= last_card; ++c) - if (!is_card_in_use(c) && is_card_in_scenario()) + if (!is_card_in_use(c) && is_card_in_scenario(c)) deck.push(c) return deck } -- cgit v1.2.3