- Added an override mechanism to allow the game to correctly detect "large small" sets that have over 200 cards in them but that are treated as the small set of the block, e.g. Eldritch Moon.

- Fixes SOI and EMN/SOI booster draft generation in quest draft tournaments,
This commit is contained in:
Agetian
2016-07-18 08:40:52 +00:00
parent 649c715346
commit 93b404e8f6
2 changed files with 7 additions and 2 deletions

View File

@@ -124,6 +124,7 @@ public final class CardEdition implements Comparable<CardEdition> { // immutable
private String slotReplaceCommonWith = "Common";
private String additionalSheetForFoils = "";
private String additionalUnlockSet = "";
private boolean smallSetOverride = false;
private final CardInSet[] cards;
private int boosterArts = 1;
@@ -182,6 +183,7 @@ public final class CardEdition implements Comparable<CardEdition> { // immutable
public String getSlotReplaceCommonWith() { return slotReplaceCommonWith; }
public String getAdditionalSheetForFoils() { return additionalSheetForFoils; }
public String getAdditionalUnlockSet() { return additionalUnlockSet; }
public boolean getSmallSetOverride() { return smallSetOverride; }
public CardInSet[] getCards() { return cards; }
public static final Function<CardEdition, String> FN_GET_CODE = new Function<CardEdition, String>() {
@@ -230,7 +232,7 @@ public final class CardEdition implements Comparable<CardEdition> { // immutable
}
public boolean isLargeSet() {
return cards.length > 200;
return cards.length > 200 && !smallSetOverride;
}
public int getCntBoosterPictures() {
@@ -335,6 +337,8 @@ public final class CardEdition implements Comparable<CardEdition> { // immutable
res.additionalUnlockSet = section.get("AdditionalSetUnlockedInQuest", ""); // e.g. Time Spiral Timeshifted (TSB) for Time Spiral
res.smallSetOverride = section.getBoolean("TreatAsSmallSet", false); // for "small" sets with over 200 cards (e.g. Eldritch Moon)
return res;
}

View File

@@ -8,6 +8,7 @@ MciCode=emn
BoosterCovers=3
Booster=9 Common:!dfc, 3 Uncommon:!dfc, 1 RareMythic:!dfc, 1 dfc:!Rare:!Mythic, 1 BasicLand SOI
ChanceReplaceCommonWith=.125F dfc:RareMythic
TreatAsSmallSet=true
[cards]
1 U Abundant Maw