mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +00:00
- Added preliminary support for metadata that defines if boosters for a particular edition may contain foils.
This commit is contained in:
@@ -98,6 +98,7 @@ public final class CardEdition implements Comparable<CardEdition> { // immutable
|
|||||||
private String alias = null;
|
private String alias = null;
|
||||||
private boolean whiteBorder = false;
|
private boolean whiteBorder = false;
|
||||||
private FoilType foilType = FoilType.NOT_SUPPORTED;
|
private FoilType foilType = FoilType.NOT_SUPPORTED;
|
||||||
|
private boolean foilInBoosters = true;
|
||||||
private final CardInSet[] cards;
|
private final CardInSet[] cards;
|
||||||
|
|
||||||
|
|
||||||
@@ -129,7 +130,6 @@ public final class CardEdition implements Comparable<CardEdition> { // immutable
|
|||||||
this.name = name;
|
this.name = name;
|
||||||
this.date = parseDate(date);
|
this.date = parseDate(date);
|
||||||
this.foilType = foil;
|
this.foilType = foil;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private static Date parseDate(String date) {
|
private static Date parseDate(String date) {
|
||||||
@@ -148,6 +148,7 @@ public final class CardEdition implements Comparable<CardEdition> { // immutable
|
|||||||
public Type getType() { return type; }
|
public Type getType() { return type; }
|
||||||
public String getName() { return name; }
|
public String getName() { return name; }
|
||||||
public String getAlias() { return alias; }
|
public String getAlias() { return alias; }
|
||||||
|
public boolean getFoilInBoosters() { return foilInBoosters; }
|
||||||
public CardInSet[] getCards() { return cards; }
|
public CardInSet[] getCards() { return cards; }
|
||||||
|
|
||||||
/** The Constant fnGetName. */
|
/** The Constant fnGetName. */
|
||||||
@@ -337,6 +338,7 @@ public final class CardEdition implements Comparable<CardEdition> { // immutable
|
|||||||
res.foilType = FoilType.NOT_SUPPORTED;
|
res.foilType = FoilType.NOT_SUPPORTED;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
res.foilInBoosters = section.getBoolean("FoilInBoosters", true);
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user