mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 04:52:07 -08:00
Added M13 option for deck generator
This commit is contained in:
parent
235b262618
commit
3ddff4a113
1 changed files with 10 additions and 1 deletions
|
|
@ -16,7 +16,7 @@ import java.util.List;
|
|||
*/
|
||||
public class ConstructedFormats {
|
||||
|
||||
private static final String[] constructedFormats = {"ISD\\DKA\\AVR", "Standard", "Extended", "Modern", "All"};
|
||||
private static final String[] constructedFormats = {"M13", "ISD\\DKA\\AVR", "Standard", "Extended", "Modern", "All"};
|
||||
|
||||
private ConstructedFormats() {
|
||||
}
|
||||
|
|
@ -30,6 +30,9 @@ public class ConstructedFormats {
|
|||
}
|
||||
|
||||
public static List<String> getSetsByFormat(String format) {
|
||||
if (format.equals("M13")) {
|
||||
return innistradBlock;
|
||||
}
|
||||
if (format.equals("ISD\\DKA\\AVR")) {
|
||||
return innistradBlock;
|
||||
}
|
||||
|
|
@ -48,6 +51,9 @@ public class ConstructedFormats {
|
|||
private static void buildLists() {
|
||||
for (String setCode : CardsStorage.getSetCodes()) {
|
||||
ExpansionSet set = Sets.findSet(setCode);
|
||||
if (set.getReleaseDate().after(m13Date)) {
|
||||
m13.add(set.getCode());
|
||||
}
|
||||
if (set.getReleaseDate().after(innistradBlockDate)) {
|
||||
innistradBlock.add(set.getCode());
|
||||
}
|
||||
|
|
@ -63,6 +69,9 @@ public class ConstructedFormats {
|
|||
}
|
||||
}
|
||||
|
||||
private static final List<String> m13= new ArrayList<String>();
|
||||
private static final Date m13Date = new GregorianCalendar(2012, 6, 6).getTime();
|
||||
|
||||
private static final List<String> innistradBlock = new ArrayList<String>();
|
||||
private static final Date innistradBlockDate = new GregorianCalendar(2011, 9, 29).getTime();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue