update check

This commit is contained in:
Anthony Calosa
2022-07-12 21:13:13 +08:00
parent 7f6bbfea3c
commit 4fb89c121f

View File

@@ -47,6 +47,7 @@ public class StaticData {
private boolean allowCustomCardsInDecksConformance; private boolean allowCustomCardsInDecksConformance;
private boolean enableSmartCardArtSelection; private boolean enableSmartCardArtSelection;
private boolean loadNonLegalCards;
// Loaded lazily: // Loaded lazily:
private IStorage<SealedProduct.Template> boosters; private IStorage<SealedProduct.Template> boosters;
@@ -76,6 +77,7 @@ public class StaticData {
this.customCardReader = customCardReader; this.customCardReader = customCardReader;
this.allowCustomCardsInDecksConformance = allowCustomCardsInDecksConformance; this.allowCustomCardsInDecksConformance = allowCustomCardsInDecksConformance;
this.enableSmartCardArtSelection = enableSmartCardArtSelection; this.enableSmartCardArtSelection = enableSmartCardArtSelection;
this.loadNonLegalCards = loadNonLegalCards;
lastInstance = this; lastInstance = this;
List<String> funnyCards = new ArrayList<>(); List<String> funnyCards = new ArrayList<>();
List<String> filtered = new ArrayList<>(); List<String> filtered = new ArrayList<>();
@@ -787,7 +789,7 @@ public class StaticData {
if (cp == null) { if (cp == null) {
if (entry.getValue().getLeft()) //skip funny cards if (entry.getValue().getLeft()) //skip funny cards
continue; continue;
if (CardEdition.Type.FUNNY.equals(e.getType()) && !StaticData.instance().getFunnySetCode().isEmpty()) if (!loadNonLegalCards && CardEdition.Type.FUNNY.equals(e.getType()))
continue; continue;
if (!cniHeader) { if (!cniHeader) {
cniSB.append("Edition: ").append(e.getName()).append(" ").append("(").append(e.getCode()).append("/").append(e.getCode2()).append(")\n"); cniSB.append("Edition: ").append(e.getName()).append(" ").append("(").append(e.getCode()).append("/").append(e.getCode2()).append(")\n");