mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 02:08:00 +00:00
- Unlocking Time Spiral in quest mode now automatically unlocks Time Spiral Timeshifted, unlocking Battle for Zendikar automatically unlocks Zendikar Expeditions.
This commit is contained in:
@@ -106,6 +106,7 @@ public final class CardEdition implements Comparable<CardEdition> { // immutable
|
||||
private double foilChanceInBooster = 0;
|
||||
private boolean foilAlwaysInCommonSlot = false;
|
||||
private String additionalSheetForFoils = "";
|
||||
private String additionalUnlockSet = "";
|
||||
private final CardInSet[] cards;
|
||||
|
||||
|
||||
@@ -159,6 +160,7 @@ public final class CardEdition implements Comparable<CardEdition> { // immutable
|
||||
public double getFoilChanceInBooster() { return foilChanceInBooster; }
|
||||
public boolean getFoilAlwaysInCommonSlot() { return foilAlwaysInCommonSlot; }
|
||||
public String getAdditionalSheetForFoils() { return additionalSheetForFoils; }
|
||||
public String getAdditionalUnlockSet() { return additionalUnlockSet; }
|
||||
public CardInSet[] getCards() { return cards; }
|
||||
|
||||
/** The Constant fnGetName. */
|
||||
@@ -292,9 +294,10 @@ public final class CardEdition implements Comparable<CardEdition> { // immutable
|
||||
}
|
||||
res.foilChanceInBooster = section.getDouble("FoilChanceInBooster", 21.43F) / 100.0F;
|
||||
res.foilAlwaysInCommonSlot = section.getBoolean("FoilAlwaysInCommonSlot", true);
|
||||
|
||||
res.additionalSheetForFoils = section.get("AdditionalSheetForFoils", "");
|
||||
|
||||
res.additionalUnlockSet = section.get("AdditionalSetUnlockedInQuest", ""); // e.g. Time Spiral Timeshifted (TSB) for Time Spiral
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@ Type=Expansion
|
||||
BoosterCovers=5
|
||||
Booster=10 Common, 3 Uncommon, 1 RareMythic, 1 BasicLand BFZ
|
||||
AdditionalSheetForFoils=fromSheet("EXP Lands")
|
||||
AdditionalSetUnlockedInQuest=EXP
|
||||
|
||||
[cards]
|
||||
U Adverse Conditions
|
||||
|
||||
@@ -6,6 +6,7 @@ Code2=TSP
|
||||
Type=Expansion
|
||||
BoosterCovers=5
|
||||
Booster=10 Common, 3 Uncommon, 1 Rare, 1 TimeShifted TSB
|
||||
AdditionalSetUnlockedInQuest=TSB
|
||||
|
||||
[cards]
|
||||
C AEther Web
|
||||
|
||||
@@ -184,6 +184,11 @@ public class QuestUtilUnlockSets {
|
||||
IStorage<SealedProduct.Template> boosters = FModel.getMagicDb().getBoosters();
|
||||
qData.getFormat().unlockSet(unlockedSet.getCode());
|
||||
|
||||
String additionalSet = unlockedSet.getAdditionalUnlockSet();
|
||||
if (!additionalSet.isEmpty()) {
|
||||
qData.getFormat().unlockSet(additionalSet);
|
||||
}
|
||||
|
||||
List<PaperCard> cardsWon = new ArrayList<PaperCard>();
|
||||
|
||||
if (starters.contains(unlockedSet.getCode())) {
|
||||
|
||||
Reference in New Issue
Block a user