mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 13:02:06 -08:00
Tests: added mage-verify warning test for missing sets in xmage (current missing sets: 34 with 1689 cards)
This commit is contained in:
parent
e87db19b7d
commit
c4fe9e3121
3 changed files with 67 additions and 0 deletions
|
|
@ -10,6 +10,7 @@ class JsonSet {
|
|||
public String gathererCode;
|
||||
public String magicCardsInfoCode;
|
||||
public String[] magicRaritiesCodes;
|
||||
public String[] alternativeNames;
|
||||
public String releaseDate;
|
||||
public String border;
|
||||
public String type;
|
||||
|
|
|
|||
|
|
@ -16,6 +16,36 @@ import java.util.Map;
|
|||
import java.util.zip.ZipInputStream;
|
||||
|
||||
public final class MtgJson {
|
||||
|
||||
public static Map<String, String> mtgJsonToXMageCodes = new HashMap<>();
|
||||
public static Map<String, String> xMageToMtgJsonCodes = new HashMap<>();
|
||||
|
||||
static {
|
||||
mtgJsonToXMageCodes.put("pWCQ", "WMCQ");
|
||||
mtgJsonToXMageCodes.put("pSUS", "SUS");
|
||||
mtgJsonToXMageCodes.put("pPRE", "PTC");
|
||||
mtgJsonToXMageCodes.put("pMPR", "MPRP");
|
||||
mtgJsonToXMageCodes.put("pMEI", "MBP");
|
||||
mtgJsonToXMageCodes.put("pGTW", "GRC"); // pGTW - Gateway = GRC - WPN Gateway ???
|
||||
mtgJsonToXMageCodes.put("pGRU", "GUR");
|
||||
mtgJsonToXMageCodes.put("pGPX", "GPX");
|
||||
mtgJsonToXMageCodes.put("pFNM", "FNMP");
|
||||
mtgJsonToXMageCodes.put("pELP", "EURO");
|
||||
mtgJsonToXMageCodes.put("pARL", "ARENA");
|
||||
mtgJsonToXMageCodes.put("pALP", "APAC");
|
||||
mtgJsonToXMageCodes.put("PO2", "P02");
|
||||
mtgJsonToXMageCodes.put("DD3_JVC", "DD3JVC");
|
||||
mtgJsonToXMageCodes.put("DD3_GVL", "DDD");
|
||||
mtgJsonToXMageCodes.put("DD3_EVG", "DD3EVG");
|
||||
mtgJsonToXMageCodes.put("DD3_DVD", "DDC");
|
||||
mtgJsonToXMageCodes.put("NMS", "NEM");
|
||||
|
||||
// revert search
|
||||
for(Map.Entry<String, String> entry: mtgJsonToXMageCodes.entrySet()){
|
||||
xMageToMtgJsonCodes.put(entry.getValue(), entry.getKey());
|
||||
}
|
||||
}
|
||||
|
||||
private MtgJson() {}
|
||||
|
||||
private static final class CardHolder {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue