diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2021-10-08 10:34:36 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2021-10-08 10:42:15 +0200 |
| commit | 687b692604f642ae4fdb2fc4fe8125d509605325 (patch) | |
| tree | f15745ef433118f23469318fe2bf6640a2d3448e /scripts | |
| parent | fd3a0f6f5e4c102cc913442514e38d4c23a8c788 (diff) | |
| download | muhqs-game-687b692604f642ae4fdb2fc4fe8125d509605325.tar.gz muhqs-game-687b692604f642ae4fdb2fc4fe8125d509605325.zip | |
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.
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/generate_card.py | 10 |
1 files changed, 9 insertions, 1 deletions
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"]}!') |
