diff options
Diffstat (limited to 'tools/gendata.js')
-rw-r--r-- | tools/gendata.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/gendata.js b/tools/gendata.js index 07f58c0..98e4f20 100644 --- a/tools/gendata.js +++ b/tools/gendata.js @@ -73,7 +73,10 @@ for (let c of card_records) { card.actions = [] result.push(`<div class="formation card">`) - result.push(`<div class="name ${c.wing}">${c.name}</div>`) + if (c.symbol) + result.push(`<div class="name with_symbol ${c.wing}">${c.name}</div>`) + else + result.push(`<div class="name ${c.wing}">${c.name}</div>`) if (c.symbol === "inf") { card.infantry = 1 @@ -352,7 +355,8 @@ for (let s of scenario_records) { { name: s.player1, cards: parse_cards(s.cards1), morale: parseInt(s.morale1), tactical: parseInt(s.tactical1) }, { name: s.player2, cards: parse_cards(s.cards2), morale: parseInt(s.morale2), tactical: parseInt(s.tactical2) }, ], - rule: s.rule || undefined + rule: s.rule || undefined, + rule_text: s.rule_text || undefined, }) result.push(` <div id="scenario_${s.number}" class="scenario card"> |