From 687b692604f642ae4fdb2fc4fe8125d509605325 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Fri, 8 Oct 2021 10:34:36 +0200 Subject: add unfinished potions set Potions are designed as a different on field resource to diversify game play. Potions may be used offensively or defensively. They are a on field equivalent to spells with harder timing restrictions, public information but artifact synergies and thus should be cheaper than their spell equivalent. In particular because unused spells can be used to generate resource by discarding two cards. Played potions are "dead" until they are used. --- scripts/generate_card.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/generate_card.py b/scripts/generate_card.py index c45810b9..69af713b 100755 --- a/scripts/generate_card.py +++ b/scripts/generate_card.py @@ -23,7 +23,8 @@ SET_SYMBOLS = { 'nautics': 'nautics', 'misc': '', 'kraken': 'kraken', - 'exp1': 'exp1' + 'exp1': 'exp1', + 'potions': 'potions', } SCRIPT_PATH = Path(__file__).parent @@ -53,6 +54,7 @@ FORMATTED_KEYS = { 'attack': 'Angriff', 'effect': 'Effekt', 'durability': 'Haltbarkeit', + 'use': 'Gebrauch', } } @@ -173,6 +175,12 @@ def generate_latex(card: MutableMapping, language='en'): stats = f'{formatted_durability}: {durability}' effect, _ = get_latex_field(card, 'effect', language) card_content += f'\\cardsplitcontent{{{stats}}}{{{effect}}}\n' + + elif card['type'] == 'potion': + formatted_use = get_formatted_key('use', language) + use, _ = get_latex_field(card, 'use', language) + card_content += f'\\cardcontent{{\\textit{{{formatted_use}}} - {use}}}\n' + else: print(f'WARNING: unknown card type {card["type"]}!') -- cgit v1.2.3