mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
update check
This commit is contained in:
@@ -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");
|
||||||
|
|||||||
Reference in New Issue
Block a user