aboutsummaryrefslogtreecommitdiff
path: root/scripts
Commit message (Collapse)AuthorAgeFilesLines
* maps: use strip block chomp operatorFlorian Fischer2023-01-251-2/+1
| | | | | The YAML strip block chomp operator causes all trailing newlines to be stripped from the map definition.
* use absolute image path when invoking generate_card_hover_links.pyFlorian Fischer2022-01-041-4/+8
|
* use python to generate card listingsFlorian Fischer2022-01-041-0/+51
| | | | | | | | | | The previous make/shell based approach results in only a single placeholder id 'placeholder-0' because we invoke generate_card.py for each card which will initialize the placeholder id count each time with 0. Now we generate the whole car listing in python which greatly reduces the number of program invocations and allows the placeholder id to be incremented for each listed card.
* improve scriptsFlorian Fischer2022-01-044-25/+90
| | | | | | | | * move more generic code handling data to data.py * fix markdown generation in generate_deck.py * make gen_hoverable_link more flexible by introducing callbacks to generate the relevant link components. * fix the link targets for hoverable links in the generated card markdown
* fix mypy invocation for newer mypy versionFlorian Fischer2022-01-041-1/+1
| | | | | Mypy >= 0.780 complained about finding a source file multiple times once via the passed path and once in the module scripts.
* remove unused argument in generate_map_imgFlorian Fischer2022-01-041-2/+2
|
* fix pylint not handling local imports correctlyFlorian Fischer2022-01-041-1/+1
|
* generalize hover link creation and use them in card listingsFlorian Fischer2022-01-032-7/+38
|
* generate_card: use latex fields for unit statsFlorian Fischer2022-01-021-1/+1
|
* generate_map_img: add vertical gateFlorian Fischer2021-12-121-2/+2
|
* use selector to choose correct tower tileFlorian Fischer2021-12-121-14/+26
| | | | | A selector string contains all 4 directions: [left, right, up, down] in that order.
* generate_deck: add markdown generation and improve codeFlorian Fischer2021-12-121-6/+9
|
* improve fortification tilesFlorian Fischer2021-12-121-30/+79
|
* scripts: improve code qualityFlorian Fischer2021-12-123-5/+3
|
* Merge branch 'tyrant'Florian Fischer2021-12-101-1/+13
|\
| * generate_card: als print unit stats without effect italicFlorian Fischer2021-12-101-1/+1
| |
| * generate_card.py: fix intension without effect generationFlorian Fischer2021-12-101-2/+5
| |
| * intermeddiate tyrant commitFlorian Fischer2021-12-091-0/+9
| |
* | [generatecard_hover_links] fix popups not beeing in the viewportFlorian Fischer2021-12-101-2/+23
|/
* hover links: don't be pseudo fancyFlorian Fischer2021-12-081-1/+1
| | | | TODO: be really fancy and position the popup properly
* ignore __pycache__Florian Fischer2021-12-081-0/+1
|
* generate_deck: format and move data related code into data.pyFlorian Fischer2021-12-081-17/+4
|
* html: add script generating hoverable card links with image previewsFlorian Fischer2021-12-083-0/+93
|
* [html] add decks page and cleanup makefileFlorian Fischer2021-12-061-1/+1
|
* add deck support and three decksFlorian Fischer2021-12-061-0/+94
| | | | | | | | | Add script to geenrate latex file containing all cards in a deck. Add make rules to generate and build the deck latex. Add decks: * spell slinger * recruiter rush * approach
* generate_card.py: prefix full actions with '\faRedo:'Florian Fischer2021-11-201-1/+1
|
* [generate_card.py] assert against useless use of listsFlorian Fischer2021-10-101-0/+2
|
* [generate_card] fix use of not decalred latex_valueFlorian Fischer2021-10-101-2/+6
|
* [de/rules] use Spiel-/ and Unterhaltskosten for play and upkeep costFlorian Fischer2021-10-101-2/+2
|
* [generate_card] generalize list filed handling, add babelFlorian Fischer2021-10-101-29/+50
| | | | | | | * Use lists wehere appropriate * Fix some typos * Rename thieve to thief * units add \n after upkeep cost
* [generate_map_img] fix pylint warnings and type hintsFlorian Fischer2021-10-101-10/+16
|
* [scripts/generate_card] fix type hintsFlorian Fischer2021-10-101-5/+5
|
* [scripts/generate_card] support multiple full_actionsFlorian Fischer2021-10-101-14/+33
|
* add unfinished potions setFlorian Fischer2021-10-081-1/+9
| | | | | | | | | | | 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/Makefile] improve check-pylint and add check-mypyFlorian Fischer2021-10-071-2/+5
|
* [generate_card.py] translate durabilityFlorian Fischer2021-10-071-1/+1
|
* [maps] add new tyrant map, tiles and improve map generation scriptFlorian Fischer2021-09-131-51/+154
|
* [generate_card] add latex_name supportFlorian Fischer2021-04-281-1/+1
|
* fix some more internationalization issuesFlorian Fischer2021-03-281-1/+2
|
* [generate_card] fix links in markdown cardsFlorian Fischer2021-03-271-3/+4
| | | | | * use always englisch name as file name * adjust links because we are now under build/<lang>/
* add en and de card listings to web pageFlorian Fischer2021-03-271-3/+6
|
* add german version of cardsFlorian Fischer2021-03-271-75/+116
| | | | | | | | | Translatable properties now have the language as subkey (currently en, de). generate_card.py takes an optional argument to select the language. The latex/Makefile has two new targets de and en each building all cards under latex/cards/<lang> and latex/build/<lang>
* add script Makefile, python tooling and run yapf in generate_map_img.pyFlorian Fischer2021-03-274-9/+636
|
* add exp1Florian Fischer2021-03-251-1/+2
| | | | | | | Featured mechanics: * marks * discard * discard pile
* add YAML links to cards html pageFlorian Fischer2021-03-251-1/+2
|
* [generate_card.py] remove useless debug printFlorian Fischer2021-03-071-1/+0
|
* [html] generate cards listingFlorian Fischer2021-03-011-4/+23
|
* convert map definition to YAMLFlorian Fischer2021-02-281-36/+11
| | | | | We don't use our own map definition syntax which was not documented and fragile. YAML is more common and is easier to parse.
* rework how cards are defined and generatedFlorian Fischer2021-02-282-194/+165
| | | | | | | | | | | Card definitions are now stored in data/cards/ in a subdirectory for each set as YAML files. YAML is still human readable but stricter and better to handle in code than ini. The latex filesystem layout resembles the card definition layout and is created by the Makefile from the YAML card definitions and must not be regenerated each time by hand.
* add material for cooperative "The Kraken" game modeFlorian Fischer2021-02-201-1/+6
|