summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-12-15 19:18:24 +0100
committerTor Andersson <tor@ccxvii.net>2024-01-08 16:36:48 +0100
commit049d7c8c00af98151f1b35d5481c9116d969f569 (patch)
tree3ffa6f53999b7d5ce4554c0b64bbe4b74547b85f /play.js
parent10a85af52ed7f94d65729d5c7a9a9473582cf328 (diff)
downloadtable-battles-049d7c8c00af98151f1b35d5481c9116d969f569.tar.gz
Fleurus.
Diffstat (limited to 'play.js')
-rw-r--r--play.js11
1 files changed, 9 insertions, 2 deletions
diff --git a/play.js b/play.js
index a35ec2e..edda080 100644
--- a/play.js
+++ b/play.js
@@ -133,10 +133,15 @@ function create_formation_slot(id, top) {
e.appendChild(ui.cards[id])
}
- if (card.special || card.name === "The Fog" || card.name === "Retreat to Nivelles")
+ if (card.name === "Retreat to Nivelles") {
ui.slot_cubes[id] = append_div(e, "slot_cubes")
- if (!card.special)
ui.slot_sticks[id] = append_div(e, "slot_sticks")
+ } else {
+ if (card.special)
+ ui.slot_cubes[id] = append_div(e, "slot_cubes")
+ else
+ ui.slot_sticks[id] = append_div(e, "slot_sticks")
+ }
if (!top) {
e.appendChild(ui.cards[id])
@@ -177,6 +182,8 @@ function create_formation_card(id) {
append_div(e, "strength", "IV")
else if (card.special === 5)
append_div(e, "strength", "V")
+ else if (card.special === -1)
+ append_div(e, "strength", "?")
else
append_div(e, "strength", card.strength)