aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2021-03-25 12:52:58 +0100
committerFlorian Fischer <florian.fl.fischer@fau.de>2021-03-25 12:52:58 +0100
commitefc12a09ee97a879b940ef9f295e480af6a647aa (patch)
tree6414ed23f5f9bf6f684f8065bf66cb020512d2ef /scripts
parent9e43520fc6f2385e68ab6845419dc8d484a22457 (diff)
downloadmuhqs-game-efc12a09ee97a879b940ef9f295e480af6a647aa.tar.gz
muhqs-game-efc12a09ee97a879b940ef9f295e480af6a647aa.zip
add YAML links to cards html page
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/generate_card.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/generate_card.py b/scripts/generate_card.py
index 1d4ae59c..d85963c4 100755
--- a/scripts/generate_card.py
+++ b/scripts/generate_card.py
@@ -48,8 +48,9 @@ def generate_markdown(card: MutableMapping, indentation=3):
print(f'{"#" * indentation} {card["name"]}')
+ yml_card_path = f'cards-data/{card["set"]}/{file_for_card(card["name"], ".yml")}'
built_card_path = f'cards/{card["set"]}/{file_for_card(card["name"], "")}'
- print(f'\n[pdf]({built_card_path}.pdf) [png]({built_card_path}.png)\n')
+ print(f'\n[pdf]({built_card_path}.pdf) [png]({built_card_path}.png) [yml]({yml_card_path})\n')
for key in ['type', 'token', 'buy', 'upkeep', 'play', 'ai', 'health', 'movement', 'attack', 'full_action', 'effect']:
if key in card: