summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-12-13 13:21:39 +0100
committerTor Andersson <tor@ccxvii.net>2024-01-08 16:36:48 +0100
commit7b3fb28c180a5e44fc4632fba890688c101765ab (patch)
tree6670952f71bbb008e19f45e84ca74ce2fac2b7c1 /play.js
parent0cfe4b26b00c3e7bc4ca19507dd96f3d7f538145 (diff)
downloadtable-battles-7b3fb28c180a5e44fc4632fba890688c101765ab.tar.gz
Wheatfield.
Diffstat (limited to 'play.js')
-rw-r--r--play.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/play.js b/play.js
index 0784020..906f571 100644
--- a/play.js
+++ b/play.js
@@ -241,8 +241,7 @@ function fill_card_row(top, parent, list) {
x = view.self
if (view.target === id)
x = view.hits
- console.log("STICKS", id, x, n)
- for (let i = 0; i < x; ++i)
+ for (let i = 0; i < x && i < n; ++i)
add_hit_stick(ui.slot_sticks[id])
for (let i = x; i < n; ++i)
add_stick(ui.slot_sticks[id])