Added the Theros set.

This commit is contained in:
LevelX2 2013-09-02 17:10:38 +02:00
parent a5af087347
commit 5496cb4afd
8 changed files with 72 additions and 4 deletions

View file

@ -17,6 +17,7 @@ public class ConstructedFormats {
private static final String[] constructedFormats = {
"- All Sets", "- Standard", "- Extended", "- Modern",
"* Theros Block", "Theros",
"Magic 2014",
"Modern Masters",
"* Return to Ravnica Block", "Dragon's Maze", "Gatecrash", "Return to Ravnica",
@ -59,7 +60,13 @@ public class ConstructedFormats {
}
public static List<String> getSetsByFormat(String format) {
if (format.equals("* Theros Block")) {
return Arrays.asList("THS");
}
if (format.equals("Theros")) {
return Arrays.asList("THS");
}
if (format.equals("Arabian Nights")) {
return Arrays.asList("ARN");
}

View file

@ -40,7 +40,8 @@ public class GathererSets implements Iterable<DownloadJob> {
"CMD", "PC2",
"ISD", "DKA", "AVR",
"RTR", "GTC", "DGM",
"MMA" };
"MMA",
"THS"};
private static final HashMap<String, String> symbolsReplacements = new HashMap<String, String>();
static {

View file

@ -16,6 +16,7 @@ public class MagicCardsImageSource implements CardImageSource {
private static final Map<String, String> setNameReplacement = new HashMap<String, String>() {
{
put("THS", "theros");
put("M14", "magic-2014");
put("MMA", "modern-masters");
put("DGM", "dragons-maze");

View file

@ -29,6 +29,7 @@ public class WizardCardsImageSource implements CardImageSource {
public WizardCardsImageSource() {
sets = new HashMap<String, Map<String, String>>();
setsAliases = new HashMap<String, String>();
setsAliases.put("THS", "theros/cig");
setsAliases.put("M14", "magic2014coreset/cig");
setsAliases.put("MMA", "modernmasters/cig");
setsAliases.put("DGM", "dragonsmaze/cig");