summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-04-13 22:40:02 +0200
committerTor Andersson <tor@ccxvii.net>2024-04-13 22:47:06 +0200
commitfc2d86ac2f7364161777114109cd5971175d1190 (patch)
tree2afedbd49e7800277da6d5ec12f831952681e3b9 /rules.js
parent0fe3a68d85a9948ebe42345584c3aaa9137ebac4 (diff)
downloadplantagenet-fc2d86ac2f7364161777114109cd5971175d1190.tar.gz
Add missing argument to is_card_in_scenario.
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js4
1 files 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
}