Move the custom set flag to setType.

This commit is contained in:
Lymia Aluysia 2016-09-24 15:58:43 -05:00
parent d678fc1a59
commit e5af2b843b
No known key found for this signature in database
GPG key ID: DB2E204C989251F7
3 changed files with 4 additions and 5 deletions

View file

@ -68,8 +68,6 @@ public abstract class ExpansionSet implements Serializable {
protected String packageName;
protected int maxCardNumberInBooster; // used to ommit cards with collector numbers beyond the regular cards in a set for boosters
protected boolean isCustomSet = false;
protected final EnumMap<Rarity, List<CardInfo>> savedCards;
public ExpansionSet(String name, String code, String packageName, Date releaseDate, SetType setType) {
@ -376,7 +374,7 @@ public abstract class ExpansionSet implements Serializable {
return null;
}
public boolean isCustomSet() { return isCustomSet; }
public boolean isCustomSet() { return setType == SetType.CUSTOM_SET; }
public void removeSavedCards() {
savedCards.clear();