Update funny cards

collector number that starts with "F" denotes funny, to filter funny cards from legal sets and exclude them in the card audit
This commit is contained in:
Anthony Calosa
2021-10-23 17:12:02 +08:00
parent d989d22420
commit c1a56f95d2
5 changed files with 18 additions and 15 deletions

View File

@@ -48,6 +48,7 @@ import forge.util.ImageUtil;
import forge.util.Localizer;
import forge.util.RuntimeVersion;
import net.miginfocom.swing.MigLayout;
import org.apache.commons.lang3.tuple.Pair;
/**
* Assembles Swing components of utilities submenu singleton.
@@ -270,19 +271,19 @@ public enum VSubmenuDownloaders implements IVSubmenu<CSubmenuDownloaders> {
int artIndex = 1;
ArrayList<String> cis = new ArrayList<>();
HashMap<String, Integer> cardCount = new HashMap<>();
HashMap<String, Pair<Boolean, Integer>> cardCount = new HashMap<>();
for (CardInSet c : e.getAllCardsInSet()) {
if (cardCount.containsKey(c.name)) {
cardCount.put(c.name, cardCount.get(c.name) + 1);
cardCount.put(c.name, Pair.of(c.collectorNumber.startsWith("F"), cardCount.get(c.name).getRight() + 1));
} else {
cardCount.put(c.name, 1);
cardCount.put(c.name, Pair.of(c.collectorNumber.startsWith("F"), 1));
}
}
// loop through the cards in this edition, considering art variations...
for (Entry<String, Integer> entry : cardCount.entrySet()) {
for (Entry<String, Pair<Boolean, Integer>> entry : cardCount.entrySet()) {
String c = entry.getKey();
artIndex = entry.getValue();
artIndex = entry.getValue().getRight();
PaperCard cp = cardDb.getCard(c, e.getCode(), artIndex);
if (cp == null) {
@@ -290,6 +291,8 @@ public enum VSubmenuDownloaders implements IVSubmenu<CSubmenuDownloaders> {
}
if (cp == null) {
if (entry.getValue().getLeft()) //skip funny cards
continue;
if (!cniHeader) {
cniSB.append("Edition: ").append(e.getName()).append(" ").append("(").append(e.getCode()).append("/").append(e.getCode2()).append(")\n");
cniHeader = true;

View File

@@ -14,9 +14,9 @@ ScryfallCode=PAL04
6 R Darksteel Ingot @Martina Pilcerova
7 R Serum Visions @Ben Thompson
8 R Glacial Ray @Jim Murray
9 R Circle of Protection: Art @Mark “Its teh-DEEN” Tedin
10 R Mise @Mark Zug
11 R Booster Tutor @Heather Hudson
12 R Goblin Mime @Dan Frazier
13 R Granny's Payback @Kaja Foglio
14 R Ashnod's Coupon @Edward P. Beard, Jr.
F9 R Circle of Protection: Art @Mark “Its teh-DEEN” Tedin
F10 R Mise @Mark Zug
F11 R Booster Tutor @Heather Hudson
F12 R Goblin Mime @Dan Frazier
F13 R Granny's Payback @Kaja Foglio
F14 R Ashnod's Coupon @Edward P. Beard, Jr.

View File

@@ -247,4 +247,4 @@ ScryfallCode=PRM
35096 S Zodiac Snake @Qi Baocheng
35088 S Zodiac Tiger @Ai Desheng
225 S Zuran Orb @Sandra Everingham
26584 S Gleemox @Dan Frazier
F26584 S Gleemox @Dan Frazier

View File

@@ -563,7 +563,7 @@ ScryfallCode=PLIST
555 U Call of the Nightwing @Adam Paquette
556 M General Kudro of Drannith @Ryan Pancoast
557 M Karametra, God of Harvests @Eric Deschamps
558 R Kaya, Ghost Haunter @Sydney Adams
F558 R Kaya, Ghost Haunter @Sydney Adams
559 R Lich Lord of Unx @Dave Allsop
560 R Lonis, Cryptozoologist @Andrew Mar
561 S Mortify @Glen Angus
@@ -572,7 +572,7 @@ ScryfallCode=PLIST
564 U Night // Day @Christopher Moeller
565 U Gate to the Afterlife @Christine Choi
566 M Helvault @Jaime Jones
567 R Puresteel Angel @Lukas Litzsinger
F567 R Puresteel Angel @Lukas Litzsinger
568 R Sapphire Medallion @Sue Ellen Brown
569 U Selesnya Keyrune @Daniel Ljunggren
570 C Signpost Scarecrow @Jung Park

View File

@@ -2,7 +2,7 @@
Code=PUST
Date=2017-12-08
Name=Unstable Promos
Type=Promo
Type=Funny
Border=Silver
ScryfallCode=PUST