Adding Current Brawl Metagame

Adding Current Brawl Metagame
This commit is contained in:
Churrufli
2020-07-31 20:49:53 +02:00
parent fc3ca506d5
commit e7fadd4397
3 changed files with 10 additions and 1 deletions

View File

@@ -0,0 +1 @@
Current Brawl Metagame | https://downloads.cardforge.org/decks/currentbrawlmetagame.zip

View File

@@ -21,7 +21,7 @@ import forge.util.storage.StorageBase;
public class NetDeckCategory extends StorageBase<Deck> {
public static final String PREFIX = "NET_DECK_";
private static Map<String, NetDeckCategory> constructed, commander;
private static Map<String, NetDeckCategory> constructed, commander, brawl;
private static Map<String, NetDeckCategory> loadCategories(String filename) {
Map<String, NetDeckCategory> categories = new TreeMap<>();
@@ -58,6 +58,12 @@ public class NetDeckCategory extends StorageBase<Deck> {
}
categories = commander;
break;
case Brawl:
if (brawl == null) {
brawl = loadCategories(ForgeConstants.NET_DECKS_BRAWL_LIST_FILE);
}
categories = brawl;
break;
default:
return null;
}

View File

@@ -47,6 +47,8 @@ public final class ForgeConstants {
public static final String IMAGE_LIST_ACHIEVEMENTS_FILE = LISTS_DIR + "achievement-images.txt";
public static final String NET_DECKS_LIST_FILE = LISTS_DIR + "net-decks.txt";
public static final String NET_DECKS_COMMANDER_LIST_FILE = LISTS_DIR + "net-decks-commander.txt";
public static final String NET_DECKS_BRAWL_LIST_FILE = LISTS_DIR + "net-decks-brawl.txt";
public static final String CHANGES_FILE = ASSETS_DIR + "README.txt";
public static final String CHANGES_FILE_NO_RELEASE = ASSETS_DIR + "CHANGES.txt";