mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
Added foil basic lands to FRF boosters and updated the way foil cards are generated to account for multiple cards in printsheets. There should now be a more equal distribution of foil rarity.
This commit is contained in:
@@ -56,6 +56,11 @@ public class BoosterGenerator {
|
||||
return StaticData.instance().getCommonCards().getFoiled(sheet.random(1, true).get(0));
|
||||
}
|
||||
|
||||
private static PaperCard generateFoilCard(List<PaperCard> cardList) {
|
||||
Collections.shuffle(cardList);
|
||||
return StaticData.instance().getCommonCards().getFoiled(cardList.get(0));
|
||||
}
|
||||
|
||||
public static List<PaperCard> getBoosterPack(SealedProduct.Template template) {
|
||||
List<PaperCard> result = new ArrayList<>();
|
||||
List<PrintSheet> sheetsUsed = new ArrayList<>();
|
||||
@@ -87,8 +92,15 @@ public class BoosterGenerator {
|
||||
}
|
||||
|
||||
if (hasFoil && foilAtEndOfPack) {
|
||||
PrintSheet foilSheet = Aggregates.random(sheetsUsed);
|
||||
result.add(generateFoilCard(foilSheet));
|
||||
List<PaperCard> foilCards = new ArrayList<>();
|
||||
for (PrintSheet printSheet : sheetsUsed) {
|
||||
for (PaperCard card : printSheet.toFlatList()) {
|
||||
if (!foilCards.contains(card)) {
|
||||
foilCards.add(card);
|
||||
}
|
||||
}
|
||||
}
|
||||
result.add(generateFoilCard(foilCards));
|
||||
}
|
||||
|
||||
return result;
|
||||
|
||||
@@ -38,6 +38,13 @@
|
||||
45 Tranquil Cove|FRF
|
||||
45 Wind-Scarred Crag|FRF
|
||||
|
||||
[FRF Basic Lands]
|
||||
1 Swamp|FRF
|
||||
1 Plains|FRF
|
||||
1 Forest|FRF
|
||||
1 Mountain|FRF
|
||||
1 Island|FRF
|
||||
|
||||
[GTC Boros Guild]
|
||||
1 Act of Treason|GTC
|
||||
1 Aerial Maneuver|GTC
|
||||
|
||||
@@ -4,7 +4,7 @@ Date=2015-01-23
|
||||
Name=Fate Reforged
|
||||
Type=Expansion
|
||||
BoosterCovers=3
|
||||
Booster=10 Common:!land, 3 Uncommon, 1 RareMythic, 1 fromSheet("FRF Lands")
|
||||
Booster=10 Common:!land, 3 Uncommon, 1 RareMythic, 1 fromSheet("FRF Lands"), 0 fromSheet("FRF Basic Lands")
|
||||
|
||||
[cards]
|
||||
M Ugin, the Spirit Dragon
|
||||
|
||||
Reference in New Issue
Block a user