summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
Diffstat (limited to 'play.js')
-rw-r--r--play.js15
1 files changed, 9 insertions, 6 deletions
diff --git a/play.js b/play.js
index 32093f3..6b3cd81 100644
--- a/play.js
+++ b/play.js
@@ -139,7 +139,15 @@ function create_formation_card(id) {
register_action(e, "card", id)
- append_div(e, "name " + wing_name[card.wing], card.name)
+ if (card.infantry || card.cavalry)
+ append_div(e, "name with_symbol " + wing_name[card.wing], card.name)
+ else
+ append_div(e, "name " + wing_name[card.wing], card.name)
+
+ if (card.infantry)
+ append_div(e, "symbol infantry")
+ if (card.cavalry)
+ append_div(e, "symbol cavalry")
if (card.special === 1)
append_div(e, "strength", "I")
@@ -150,11 +158,6 @@ function create_formation_card(id) {
else
append_div(e, "strength", card.strength)
- if (card.infantry)
- append_div(e, "symbol infantry")
- if (card.cavalry)
- append_div(e, "symbol cavalry")
-
if (card.link) {
if (set_has(card.link, id - 1))
append_div(e, "link left")