summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
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)