summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-12-12 17:29:58 +0100
committerTor Andersson <tor@ccxvii.net>2024-01-08 16:36:48 +0100
commit2b50d84d843bf2c1bff54393aa4421543d8134d9 (patch)
treebadbecaa71fdf4aab2a060fa296c20fa4378ac5c /play.js
parent6195f24fc7abb0453356464a1f923a699e89da00 (diff)
downloadtable-battles-2b50d84d843bf2c1bff54393aa4421543d8134d9.tar.gz
symbols
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")