mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
Added support for varying number of sets in the starter pack code. (So you could play a sealed game with, say, one starter pack and one booster by modifying blocks.txt.) --BBU
This commit is contained in:
@@ -115,9 +115,7 @@ public class SealedDeckFormat {
|
|||||||
int starter1idx = -1;
|
int starter1idx = -1;
|
||||||
int starter2idx = -2;
|
int starter2idx = -2;
|
||||||
|
|
||||||
if (nPacks > 5) { // paranoia...
|
for (int j = nPacks - 1; j >= 0 && !starter2; j--) {
|
||||||
|
|
||||||
for (int j = 5; j >= 0 && !starter2; j--) {
|
|
||||||
|
|
||||||
if (Singletons.getModel().getTournamentPacks().contains(pp[j])) {
|
if (Singletons.getModel().getTournamentPacks().contains(pp[j])) {
|
||||||
if (starter1) {
|
if (starter1) {
|
||||||
@@ -141,7 +139,7 @@ public class SealedDeckFormat {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
if (starter1 || starter2) {
|
if (starter1 || starter2) {
|
||||||
final List<String> starterPacks = new ArrayList<String>();
|
final List<String> starterPacks = new ArrayList<String>();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user