You can now select 3-12 boosters instead of the default 6 in single-set Block-mode Sealed Deck games.

This commit is contained in:
RumbleBBU
2012-09-28 05:29:01 +00:00
parent 318a610689
commit c04c9ab030

View File

@@ -220,7 +220,17 @@ public class SealedDeckFormat {
else { else {
product1 = new UnOpenedProduct(Singletons.getModel().getBoosters().get(sets[0])); product1 = new UnOpenedProduct(Singletons.getModel().getBoosters().get(sets[0]));
} }
for (int i = 0; i < nPacks; i++) {
// Choose number of boosters
final Integer[] integers = new Integer[10];
for (int i = 0; i < 10; i++) {
integers[i] = Integer.valueOf(i + 3);
}
Integer nrBoosters = GuiUtils.chooseOne("How many booster packs?", integers);
for (int i = 0; i < nrBoosters; i++) {
this.product.add(product1); this.product.add(product1);
} }
} }