Fix parsing of new edition sections

This commit is contained in:
tool4EvEr
2021-04-04 23:52:41 +02:00
parent 0202d52e49
commit 225790cc4b
3 changed files with 4 additions and 4 deletions

View File

@@ -116,7 +116,7 @@ public final class CardEdition implements Comparable<CardEdition> { // immutable
}
// reserved names of sections inside edition files, that are not parsed as cards
private static final List<String> reservedSectionNames = ImmutableList.of("metadata", "tokens");
private static final List<String> reservedSectionNames = ImmutableList.of("metadata", "tokens", "other");
// commonly used printsheets with collector number
public enum EditionSectionWithCollectorNumbers {
@@ -127,7 +127,8 @@ public final class CardEdition implements Comparable<CardEdition> { // immutable
EXTENDED_ART("extended art"),
ALTERNATE_ART("alternate art"),
BUY_A_BOX("buy a box"),
PROMO("promo");
PROMO("promo"),
BOX_TOPPER("box topper");
private final String name;

View File

@@ -31,7 +31,6 @@ public class PrintSheet {
for(CardEdition edition : editions) {
for(PrintSheet ps : edition.getPrintSheetsBySection()) {
System.out.println(ps.name);
sheets.add(ps.name, ps);
}
}

View File

@@ -1551,7 +1551,7 @@ Kaya, Ghost Assassin|CN2|2
[JMP Above the Clouds 4]
1 Kira, Great Glass-Spinner|JMP
1 Windstorm Drake|M21
1 Windstorm Drake|JMP
1 Tide Skimmer|M21
1 Keen Glidemaster|M21
1 Roaming Ghostlight|M21