Adding TTT league packs.

This commit is contained in:
marcins78@gmail.com
2012-01-11 17:36:33 +00:00
parent 7ac84d60cf
commit c5b8004aeb
4 changed files with 8 additions and 1 deletions

View File

@@ -33,7 +33,8 @@ public class FixedPackBox implements PackBox {
List<CardCollection.Item> result = new LinkedList<CardCollection.Item>();
for (Map.Entry<String, Integer> contentsEntry : _contents.entrySet()) {
String blueprintId = contentsEntry.getKey();
result.add(new CardCollection.Item(CardCollection.Item.Type.CARD, contentsEntry.getValue(), blueprintId));
CardCollection.Item.Type type = blueprintId.contains("_") ? CardCollection.Item.Type.CARD : CardCollection.Item.Type.PACK;
result.add(new CardCollection.Item(type, contentsEntry.getValue(), blueprintId));
}
return result;
}

View File

@@ -0,0 +1,2 @@
1xTTT - Aragorn Starter
1xTTT - Theoden Starter

View File

@@ -0,0 +1,2 @@
1x(S)TTT - Starter
6xTTT - Booster

View File

@@ -36,8 +36,10 @@ public class PacksStorageProvider implements Injectable<PacksStorage>, Injectabl
try {
PacksStorage packStorage = new PacksStorage();
packStorage.addPackBox("FotR - League Starter", new LeagueStarterBox());
packStorage.addPackBox("TTT - League", new FixedPackBox("TTT - League"));
packStorage.addPackBox("(S)FotR - Tengwar", new FixedPackBox("(S)FotR - Tengwar"));
packStorage.addPackBox("(S)TTT - Starter", new FixedPackBox("(S)TTT - Starter"));
packStorage.addPackBox("FotR - Gandalf Starter", new FixedPackBox("FotR - Gandalf Starter"));
packStorage.addPackBox("FotR - Aragorn Starter", new FixedPackBox("FotR - Aragorn Starter"));