mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
- Fixed the flooding of quest shop with dozens of color booster packs (now the total number of color booster packs corresponds to the total number of standard booster packs).
This commit is contained in:
@@ -533,11 +533,10 @@ public final class QuestUtilCards {
|
|||||||
|
|
||||||
List<InventoryItem> output = new ArrayList<>();
|
List<InventoryItem> output = new ArrayList<>();
|
||||||
|
|
||||||
for (String color : SealedProduct.specialSets) {
|
for (int i = 0; i < quantity; i++) {
|
||||||
for (int i = 0; i < quantity; i++) {
|
String color = SealedProduct.specialSets.get(MyRandom.getRandom().nextInt(SealedProduct.specialSets.size()));
|
||||||
output.add(new BoosterPack(color, getColoredBoosterTemplate(color)));
|
output.add(new BoosterPack(color, getColoredBoosterTemplate(color)));
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
return output;
|
return output;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user