diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2021-02-20 16:00:11 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2021-02-20 16:00:11 +0100 |
| commit | a4569355f2edc31a4b916d171f06c9cf7bac1b24 (patch) | |
| tree | b9226f55e878080eaa718c545cd2a460d3afb927 /scripts | |
| parent | 0680d048cd707e0ce28f186319efe9f26ba5ab7c (diff) | |
| download | muhqs-game-a4569355f2edc31a4b916d171f06c9cf7bac1b24.tar.gz muhqs-game-a4569355f2edc31a4b916d171f06c9cf7bac1b24.zip | |
add material for cooperative "The Kraken" game mode
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/generate_latex.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/generate_latex.py b/scripts/generate_latex.py index 3cdc5cbe..71a99915 100755 --- a/scripts/generate_latex.py +++ b/scripts/generate_latex.py @@ -46,7 +46,7 @@ CARD_TEMPLATE = \ \\end{{document}} """ -SET_SYMBOLS = {'base': 'base', 'magic': 'magic', 'equipments': 'equipments', 'nautics': 'nautics', 'misc': ''} +SET_SYMBOLS = {'base': 'base', 'magic': 'magic', 'equipments': 'equipments', 'nautics': 'nautics', 'misc': '', 'kraken': 'kraken'} LATEX_ROOT = pathlib.Path(os.getcwd()) ASSETS_DIR = LATEX_ROOT / '../assets' @@ -76,7 +76,12 @@ def generate_card(card_name: str, card: MutableMapping): if card['type'] == 'unit': stats = '' + if 'ai' in card: + stats += f'AI: {card["ai"]}' + if 'health' in card: + if stats: + stats += '\\\\ ' stats += f'Health: {card["health"]}' if 'movement' in card: |
