From a4569355f2edc31a4b916d171f06c9cf7bac1b24 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Sat, 20 Feb 2021 16:00:11 +0100 Subject: add material for cooperative "The Kraken" game mode --- scripts/generate_latex.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'scripts') 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: -- cgit v1.2.3