From 53521f5ff633b0a0c5c608ccd4164ecf74eff7a2 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Thu, 8 Oct 2020 10:59:28 +0200 Subject: add tokens to tikzcards and add recruiting action to recruiter Tokens have a unique background color and are marked as TOKEN on the card. The latex commands to generate cards now takes the card title as argument. Card names or TOKEN is printed on the left type strip to make cards easier recognizable when hold in hands. --- scripts/generate_latex.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'scripts') diff --git a/scripts/generate_latex.py b/scripts/generate_latex.py index 2a7b5aa0..f9f6eb21 100755 --- a/scripts/generate_latex.py +++ b/scripts/generate_latex.py @@ -68,10 +68,11 @@ def generate_card(card_name: str, card: MutableMapping): card_content += f'\\cardbackground{{{image_file.name}}}\n' break - card_content += f'\cardtype{card["type"].capitalize()}\n' - card_content += f'\cardtitle{{{card_name}}}\n' + card_content += f'\cardtype{card["type"].capitalize()}{"Token" if "token" in card else ""}{{{card_name}}}\n' + # card_content += f'\cardtitle{{{card_name}}}\n' - card_content += f'\cardbuycost{{{card["buy"]}}}\n' + if 'buy' in card: + card_content += f'\cardbuycost{{{card["buy"]}}}\n' if card['type'] == 'unit': health = card['health'] -- cgit v1.2.3