diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-12-12 17:29:58 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-01-08 16:36:48 +0100 |
commit | 2b50d84d843bf2c1bff54393aa4421543d8134d9 (patch) | |
tree | badbecaa71fdf4aab2a060fa296c20fa4378ac5c /play.js | |
parent | 6195f24fc7abb0453356464a1f923a699e89da00 (diff) | |
download | table-battles-2b50d84d843bf2c1bff54393aa4421543d8134d9.tar.gz |
symbols
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") |