aboutsummaryrefslogtreecommitdiff
path: root/scripts/generate_latex.py
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2020-10-08 10:59:28 +0200
committerFlorian Fischer <florian.fl.fischer@fau.de>2020-10-18 14:32:13 +0200
commit53521f5ff633b0a0c5c608ccd4164ecf74eff7a2 (patch)
treeb8d073a21f730064e39c36db23fcb6ba3ab01869 /scripts/generate_latex.py
parent4e37236a92d0dfd1f0df5309b13a9f7fce4131de (diff)
downloadmuhqs-game-53521f5ff633b0a0c5c608ccd4164ecf74eff7a2.tar.gz
muhqs-game-53521f5ff633b0a0c5c608ccd4164ecf74eff7a2.zip
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.
Diffstat (limited to 'scripts/generate_latex.py')
-rwxr-xr-xscripts/generate_latex.py7
1 files changed, 4 insertions, 3 deletions
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']