Tokens.xml for M:tG
Go to file
ebbit1q 053303cbc2 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
2022-07-01 20:23:10 +02:00
.github/workflows add workflow for updating the version on pr approval (#135) 2022-02-14 22:35:46 +01:00
challenge_tokens.xml fix conflict with Unquenchable Fury from NEO (#137) 2022-02-16 21:14:11 +01:00
LICENSE Initial commit 2014-07-27 11:15:08 +08:00
README.md Improve Readme (#154) 2022-06-02 22:39:18 +02:00
tokens.xml search for unused relations 2022-07-01 20:23:10 +02:00
version.txt Update Gatherer token links that need special care to Scryfall (#162) 2022-07-01 20:18:15 +02:00

Discord Gitter Chat

Magic-Token

This repo contains token information in Cockatrice's XML card database format for Magic: The Gathering.
It describes individual tokens with linked art and the relation to their creators.

For normal tokens, save the file found here: tokens.xml

For tokens from the Theros block challege decks, save the file found here: challenge_tokens.xml