summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-01-07 00:15:03 +0100
committerTor Andersson <tor@ccxvii.net>2024-01-08 16:36:48 +0100
commit00e7dd523d7b011309a1743bbe662241941e5f7a (patch)
tree1da0903fdee38a2d3393c7ba6a80ad8016b6116e
parent717faa1ffc830e5109a90e1740a912c6ec6647c8 (diff)
downloadtable-battles-00e7dd523d7b011309a1743bbe662241941e5f7a.tar.gz
Fix "The Fog" display.
-rw-r--r--play.html4
-rw-r--r--play.js2
2 files changed, 5 insertions, 1 deletions
diff --git a/play.html b/play.html
index 42d9e50..3de7ab5 100644
--- a/play.html
+++ b/play.html
@@ -272,6 +272,10 @@ main {
#player1 .slot_cubes { align-items: start; }
#player2 .slot_cubes { align-items: end; }
+/* S37 Inkerman - The Fog */
+[data-card="225B"] .slot_sticks { min-height: 12px }
+[data-card="225B"] .slot_cubes { height: 51px }
+
/* S38 Fleurus - Retreat to Nivelles */
[data-card="237A"] .slot_cubes:empty { display: none }
[data-card="237A"] .slot_cubes:not(:empty) ~ .slot_sticks { display: none }
diff --git a/play.js b/play.js
index 3d5e30a..22e7da3 100644
--- a/play.js
+++ b/play.js
@@ -129,7 +129,7 @@ function create_formation_slot(id) {
register_animation(e, 250)
- if (card.name === "Retreat to Nivelles") {
+ if (card.name === "The Fog" || card.name === "Retreat to Nivelles") {
ui.slot_cubes[id] = append_div(e, "slot_cubes")
ui.slot_sticks[id] = append_div(e, "slot_sticks")
} else {