From 2b50d84d843bf2c1bff54393aa4421543d8134d9 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 12 Dec 2023 17:29:58 +0100 Subject: symbols --- tools/gendata.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'tools/gendata.js') 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(`
`) - result.push(`
${c.name}
`) + if (c.symbol) + result.push(`
${c.name}
`) + else + result.push(`
${c.name}
`) 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(`
-- cgit v1.2.3