* Adds Un-Set Tokens
*Adds novel tokens from UND, UST and UGL (UNH has no tokens on scryfall) to go with their related cards
--Acorn Stash, Beeble, Brainiac, Dragon (Gold), Giant Teddy Bear, Faerie Spy, Rogue (w/ Menace), Storm Crow, Sheep (2/2)
--Dragon and Giant Teddy Bear are Gold and Pink, respectively, so I have left them as colorless (in line with scryfall) with a comment in case someone is curious about them in the future
*Adds new art for Construct, Gnome Goat, Goblin, Pegasus, Soldier, Squirrel, and Zombie to their existing entries
--In the case of Gnome, I have replaced the gnome token art with this one since it seemed to be a homemade placeholder. Happy to revert it if y'all prefer a black bordered token for the main art or if I misjudged its officialness
* Apply suggestions from code review
Co-authored-by: ebbit1q <ebbit1q@gmail.com>
* Update tokens.xml
* Address Second Round of Comments
*Changed 'card' to 'token' in Dragon Token and Giant Teddy Bear Token text.
*Moved Acorn Stash to be just above Energy Reserve (the Counter holder tokens seem to be alphabetized) and changed its type and Maintype to 'Counter'.
* Add exclude to Acorn Stash
That seems to be the tradition for any card listed under a Counter-holder type token.
* update version
Co-authored-by: ebbit1q <ebbit1q@gmail.com>
* De-Gather all Remaining Links
*Updates all token links (including emblems) still using Gatherer links to Scryfall Large links
--Links updated algorithmically; see pull request for algorithms
* update version
Co-authored-by: ebbit1q <ebbit1q@gmail.com>
* search for unused relations
reverse-related is assumed to only be used for external references to
the xml
related tags should be used for internal links to make this easier and
to avoid certain errors eg the Phyrexian Insect here
the following lazy bash has been used to find these:
\#!/bin/bash
relationrx='<reverse-related([^>]*)>([^<]*)</reverse-related>'
while read -r line; do
if [[ $line =~ $relationrx ]]; then
name="${BASH_REMATCH[2]}"
#args="${BASH_REMATCH[1]}"
if ! grep -F "$name" "$HOME/.local/share/Cockatrice/Cockatrice/cards.xml" -q; then
echo "$name"
fi
fi
done <tokens.xml
the following relations are affected:
Domri, Chaos Bringer (Emblem) is related internally, moved
Ajani, Adversary of Tyrants (Emblem) is related internally, moved
Chief Jim Hopper became Sophina, Spearsage Deserter, moved
Max, the Daredevil became Elmar, Ulvenwald Informant, moved
Will the Wise became Wernog, Rider's Chaplain, moved
"Big Boy Forest Crusher" was a spoiler placeholder, deleted
"Destoroyah, Perfect Lifeform" is called Everquill Phoenix, deleted
"What's Kraken" was a spoiler placeholder, deleted
Liliana, the Last Hope (Emblem) is related internally, moved
Insect Token has been renamed to Phyrexian Insect token before and had its Poison Counter relationship lost, moved
`Snake Token ` is related internally, moved
Obsessed Astronomer was probably a spoiler placeholder?, deleted
"Obosh, With The Leggies" was a spoiler placeholder, deleted
"Gigan, Cyberclaw Terror" is called Gyruda, Doom of Depths, deleted
* sort all reverse-related tags
less lazy script but still bash:
\#!/bin/bash
tag="reverse-related"
relationrx="<$tag([^>]*)>([^<]*)</$tag>"
numberrx='[0-9]+'
declare -A list # associative array
while IFS= read -r line; do
if [[ $line =~ $relationrx ]]; then
yes=1
name="${BASH_REMATCH[2]}"
args="${BASH_REMATCH[1]}"
if [[ $args =~ $numberrx ]]; then
args="$(printf "%03d" "${BASH_REMATCH[0]}")$args"
fi
list[ "$name$args"]="$line"
keys+="
$name$args"
elif [[ $yes ]]; then
# LC_ALL=C determines the sort behavior!
<<<"${keys:1}" LC_ALL=C sort --ignore-case | while read -r key; do
echo "${list[ $key]}"
done
yes=""
list=()
keys=""
echo "$line"
else
echo "$line"
fi
done <tokens.xml | sponge tokens.xml
* remove duplicate entry
this also needed a script, because why not:
\#!/bin/bash
while IFS= read -r line; do
if [[ $line == "$last" ]]; then
echo "$line"
fi
last="$line"
done <tokens.xml
* update version
* Update multiple-art token links to Scryfall
*Manually updated tokens with multiple printings in the same set from Gatherer to Scryfall as per https://github.com/Cockatrice/Magic-Token/issues/149
--Also did a blue Thopter (C18) and Copy (SNC) since they were easy to locate while looking
*Moved */* Zombie Token (EMN) from the 2/2 block to the */* block (hopefully it has the right priority)
* Removed duplicate token art
* Re-add duplicates
*Reverses previous commit removing duplicates (and replaces a gatherer link for some knights with multiple artwork that I missed before)
*Replaces gatherer art for 'Phyrexian' tokens, UST double tokens (backs only), Morph, Manifest, the State cards (The Initiative, Foretell, etc), Companion, and Copy with Scryfall large links (and also a plant because it was flagged by my script for some unknown reason)
* update version
Co-authored-by: ebbit1q <ebbit1q@gmail.com>
* Move MH2 Construct Token image to Proper Card
*Move MH2 Construct Token to the 0/0 Construct card block as that one is a 0/0 not a 6/12
--Link is now a scryfall large as per https://github.com/Cockatrice/Magic-Token/issues/149
*Changed two 'The' to 'the' to be in line with Oracle text (Tuktuk the Returned and Negan, the Cold-Blooded)
* update version
Co-authored-by: ebbit1q <ebbit1q@gmail.com>
* Modernize Custom Tokens and Add 2 More
*Updates custom tokens created by Broken Visage, Wall of Kelp, and Jungle Patrol (previously added in https://github.com/Cockatrice/Magic-Token/pull/156) to more modern card frames and (likely) higher quality images.
*Adds token art for the Wolves of the Hunt token created by Master of the Hunt and the Unicorn Token created by Blessed Sanctuary as asked for in https://github.com/Cockatrice/Magic-Token/issues/85. Supersedes the Unicorn token proposed in https://github.com/Cockatrice/Magic-Token/pull/155 as the card frame is more modern and the image should be higher quality.
* Update tokens.xml
* Public Links
Made the repo I have the images in public and re-added the links just in case they changed.
* update version
Co-authored-by: ebbit1q <ebbit1q@gmail.com>
* move book of exalted deeds token to the white angel entry
add a comment, maybe it helps
* abcdefghijklmnopqrstuvwxyz
* remove comment
* update version to 20220611
Co-authored-by: github-actions <github-actions@github.com>
* Add art for 3 missing tokens
Add custom art tokens for Broken Visage, Wall of Kelp, and Jungle Patrol.
* update version
Co-authored-by: ebbit1q <ebbit1q@gmail.com>
* Fixes 2 snake tokens
https://github.com/Cockatrice/Magic-Token/issues/140 Ophiomancer didn't have an official token until now so this adds that. The snake for Hapatra Vizier of Poisons had a broken link so this also fixes that.
* Fix wrong link
* update version
Co-authored-by: ebbit1q <ebbit1q@gmail.com>
* Streets of New Capenna tokens
* Fixed the ordering of space vs. hyphen
* the alphabet goes like this:
/SNC^M/related^MV/token^Mk:norm ^dt>$p^M:'<,'>sort^M:'<,'>norm ^2f<d$^P^M
* add extra entries for stimulus package and join the maestros
* remove count=x on stimulus package
* update version to 20220423
Co-authored-by: ebbit1q <ebbit1q@gmail.com>
Co-authored-by: github-actions <github-actions@github.com>
* full token compleation
add phyrexian version of each token
move grist insect token art to correct entry
* update version to 20220228
Co-authored-by: github-actions <github-actions@github.com>
* Initial Tokens
* All NEO and some NEC tokens
No images yet for anything besides Mechtitan.
* Initial Tokens
* All NEO and some NEC tokens
No images yet for anything besides Mechtitan.
* add picUrl=""
* run linter
* Update tokens.xml
* update version
Co-authored-by: ebbit1q <ebbit1q@gmail.com>
* add workflow for updating the version on pr approval
* split into script
* apply pressure
* github parameter replacement uses double braces
* remove checks and fix repo url
* change merge behavior to merge master into the pr instead
this means it will not be required to force push when we're behind on
master
* add option to use workflow on comments
* grab correct ref from comments
* get full pr info from comment
* remove shell script
* correctly deal with having a different upstream
* prettyfy
* Update for SLD Stranger Things
* update version
sed -i s/$(cat version.txt)/$(date +%Y%m%d)/ tokens.xml
date +%Y%m%d >version.txt
Co-authored-by: ebbit1q <ebbit1q@gmail.com>
This commit removes a relationship between the Kraken token
and the Kiora, the Crashing Wave card that was created by mistake and
not caught.
Mentioned in https://github.com/Cockatrice/Magic-Token/pull/119
* Secret Lair TWD cards
No one had added these yet, so here they are after being requested.
* move sld to under cmr
* sed -i s/$(cat version.txt)/$(date +%Y%m%d)/ tokens.xml && date +%Y%m%d >version.txt
Co-authored-by: ebbit1q <ebbit1q@gmail.com>
* Fix for nonexistent set
PPRE does not exist, and this angel token should refer to set P04 as seen here https://scryfall.com/card/p04/2/angel
* Update version.txt
* Update tokens.xml
Co-authored-by: ebbit1q <ebbit1q@gmail.com>