summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-12-14 15:12:03 +0100
committerTor Andersson <tor@ccxvii.net>2024-01-08 16:36:48 +0100
commit1b3c32195d2741ac44aa35271b399c3fa2e6f2c2 (patch)
tree97a1c6b24aa2cdae40b1a872ae689e3e7fe98153 /play.js
parent55eae227cb5eb04d03814137ebe6f6a13a93c92c (diff)
downloadtable-battles-1b3c32195d2741ac44aa35271b399c3fa2e6f2c2.tar.gz
Squeeze layout.
Diffstat (limited to 'play.js')
-rw-r--r--play.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/play.js b/play.js
index 7deb683..6f7447d 100644
--- a/play.js
+++ b/play.js
@@ -145,6 +145,9 @@ function create_formation_card(id) {
let card = data.cards[id]
let e = create_div("card formation " + wing_name[card.wing])
+ if (card.squeeze)
+ e.classList.add("squeeze" + card.squeeze)
+
register_action(e, "card", id)
if (card.infantry || card.cavalry)