diff options
Diffstat (limited to 'play.js')
-rw-r--r-- | play.js | 15 |
1 files changed, 9 insertions, 6 deletions
@@ -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") |