mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 04:52:07 -08:00
Added Commander and Dragon's Maze set objects to MAGE.
This commit is contained in:
parent
2e34bf356e
commit
2fc53fa71e
10 changed files with 138 additions and 11 deletions
|
|
@ -17,12 +17,13 @@ import mage.cards.repository.CardRepository;
|
|||
public class ConstructedFormats {
|
||||
|
||||
private static final String[] constructedFormats = {"- All Sets", "- Standard", "- Extended", "- Modern",
|
||||
"* Return to Ravnica Block", "Gatecrash","Return to Ravnica", "Magic 2013",
|
||||
"* Innistrad Block", "Avacyn Restored", "Dark Ascension", "Innistrad", "Magic 2012",
|
||||
"Planechase 2012",
|
||||
"* Return to Ravnica Block", "Dragon's Maze", "Gatecrash","Return to Ravnica",
|
||||
"Magic 2013", "Planechase 2012",
|
||||
"* Innistrad Block", "Avacyn Restored", "Dark Ascension", "Innistrad",
|
||||
"Magic 2012", "Commander",
|
||||
"* Scars of Mirrodin Block", "New Phyrexia", "Mirrodin Besieged", "Scars of Mirrodin", "Magic 2011",
|
||||
"* Zendikar Block", "Rise of the Eldrazi", "Worldwake", "Zendikar", "Magic 2010",
|
||||
"Planechase",
|
||||
"* Zendikar Block", "Rise of the Eldrazi", "Worldwake", "Zendikar",
|
||||
"Magic 2010", "Planechase",
|
||||
"* Shards of Alara Block", "Alara Reborn", "Conflux", "Shards of Alara",
|
||||
"* Shadowmoor Block", "Shadowmoor", "Eventide",
|
||||
"* Lorwyn Block", "Lorwyn", "Morningtide",
|
||||
|
|
@ -286,7 +287,7 @@ public class ConstructedFormats {
|
|||
return Arrays.asList("AVR");
|
||||
}
|
||||
if (format.equals("* Return to Ravnica Block")) {
|
||||
return Arrays.asList("RTR", "GTC");
|
||||
return Arrays.asList("RTR", "GTC", "DGM");
|
||||
}
|
||||
if (format.equals("Return to Ravnica")) {
|
||||
return Arrays.asList("RTR");
|
||||
|
|
@ -294,6 +295,9 @@ public class ConstructedFormats {
|
|||
if (format.equals("Gatecrash")) {
|
||||
return Arrays.asList("GTC");
|
||||
}
|
||||
if (format.equals("Dragon's Maze")) {
|
||||
return Arrays.asList("DGM");
|
||||
}
|
||||
if (format.equals("Limited Edition Alpha")) {
|
||||
return Arrays.asList("LEA");
|
||||
}
|
||||
|
|
@ -344,6 +348,9 @@ public class ConstructedFormats {
|
|||
if (format.equals("Planechase")) {
|
||||
return Arrays.asList("HOP");
|
||||
}
|
||||
if (format.equals("Commander")) {
|
||||
return Arrays.asList("CMD");
|
||||
}
|
||||
if (format.equals("Planechase 2012")) {
|
||||
return Arrays.asList("PC2");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -36,9 +36,10 @@ public class GathererSets implements Iterable<DownloadJob> {
|
|||
"DDF",
|
||||
"ALA", "CON", "ARB",
|
||||
"ZEN", "WWK", "ROE",
|
||||
"SOM", "MBS", "NPH",
|
||||
"SOM", "MBS", "NPH",
|
||||
"CMD",
|
||||
"ISD", "DKA", "AVR",
|
||||
"RTR", "GTC"};
|
||||
"RTR", "GTC", "DGM"};
|
||||
private static final HashMap<String, String> symbolsReplacements = new HashMap<String, String>();
|
||||
|
||||
static {
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ public class MagicCardsImageSource implements CardImageSource {
|
|||
private static final Map<String, String> setNameReplacement = new HashMap<String, String>() {
|
||||
|
||||
{
|
||||
put("DGM", "dragons-maze");
|
||||
put("GTC", "gatecrash");
|
||||
put("RTR", "return-to-ravnica");
|
||||
put("M13", "magic-2013");
|
||||
|
|
@ -33,6 +34,7 @@ public class MagicCardsImageSource implements CardImageSource {
|
|||
put("WWK", "worldwake");
|
||||
put("ZEN", "zendikar");
|
||||
put("HOP", "planechase");
|
||||
put("CMD", "commander");
|
||||
put("PC2", "planechase-2012-edition");
|
||||
put("M10", "magic-2010");
|
||||
put("GVL", "duel-decks-garruk-vs-liliana");
|
||||
|
|
|
|||
|
|
@ -28,6 +28,7 @@ public class WizardCardsImageSource implements CardImageSource {
|
|||
public WizardCardsImageSource() {
|
||||
sets = new HashMap();
|
||||
setsAliases = new HashMap();
|
||||
setsAliases.put("DGM", "dragonsmaze/cig");
|
||||
setsAliases.put("GTC", "gatecrash/cig");
|
||||
setsAliases.put("RTR", "returntoravnica/cig");
|
||||
setsAliases.put("M13", "magic2013/cig");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue