Split the Magic Player Rewards (MPRP) promotional set into the individual sets.

- Removed Magic Player Rewards (MPRP)
- Added MPR sets 2001 (MPR), 2003-2011 (P03 - P11)
This commit is contained in:
Thomas Hess 2020-02-04 13:02:13 +01:00
parent 8675c3eb11
commit 443bc95a63
No known key found for this signature in database
GPG key ID: 98602F47D161B13C
19 changed files with 352 additions and 86 deletions

View file

@ -1498,7 +1498,7 @@ public class DragCardGrid extends JPanel implements DragCardSource, DragCardTarg
JOptionPane.YES_NO_OPTION) == JOptionPane.NO_OPTION) {
return;
}
// TODO: Why are these a HashMap? It can be a HashSet<String> instead, as the value is never used in the code.
Map<String, Integer> pimpedSets = new HashMap<>();
Map<CardView, Integer> pimpedCards = new HashMap<>();
pimpedSets.put("CP", 1);
@ -1567,8 +1567,19 @@ public class DragCardGrid extends JPanel implements DragCardSource, DragCardTarg
pimpedSets.put("F17", 1);
pimpedSets.put("F18", 1);
// Magic Player Rewards 2001-2011, except for 2002 (P02), which only contains tokens
pimpedSets.put("MPR", 1);
pimpedSets.put("P03", 1);
pimpedSets.put("P04", 1);
pimpedSets.put("P05", 1);
pimpedSets.put("P06", 1);
pimpedSets.put("P07", 1);
pimpedSets.put("P08", 1);
pimpedSets.put("P09", 1);
pimpedSets.put("P10", 1);
pimpedSets.put("P11", 1);
pimpedSets.put("MGDC", 1);
pimpedSets.put("MPRP", 1);
pimpedSets.put("EXP", 1);
pimpedSets.put("GPX", 1);
pimpedSets.put("GRC", 1);

View file

@ -66,7 +66,18 @@ public final class ManaSymbols {
onlyMythics.add("EXP");
onlyMythics.add("MPS");
withoutSymbols.add("MPRP");
// Magic Player Reward sets
withoutSymbols.add("MPR");
withoutSymbols.add("P03");
withoutSymbols.add("P04");
withoutSymbols.add("P05");
withoutSymbols.add("P06");
withoutSymbols.add("P07");
withoutSymbols.add("P08");
withoutSymbols.add("P09");
withoutSymbols.add("P10");
withoutSymbols.add("P11");
}
private static final Map<String, Dimension> setImagesExist = new HashMap<>();

View file

@ -63,7 +63,7 @@ public class GathererSets implements Iterable<DownloadJob> {
"W16", "W17",
// "PALP" -- Gatherer does not have the set Asia Pacific Land Program
// "ATH" -- has cards from many sets, symbol does not exist on gatherer
// "CLASH", "CP", "DPA", "PELP", "GPX", "GRC", "GUR", "H17", "JR", "MBP", "MGDC", "MLP", "MPRP", "PPRE", "SUS", "SWS", "WMCQ", // need to fix
// "CLASH", "CP", "DPA", "PELP", "GPX", "GRC", "GUR", "H17", "JR", "MBP", "MGDC", "MLP", "PPRE", "SUS", "SWS", "WMCQ", // need to fix
"H09", "PD2", "PD3", "UNH", "CM1", "V11", "A25", "UST", "IMA", "DD2", "EVG", "DDC", "DDE", "DDD", "8EB", "9EB", "CHR", "G18", "DD3GVL", "S00", "S99", "UGL" // ok
// current testing
};

View file

@ -379,7 +379,7 @@ public enum WizardCardsImageSource implements CardImageSource {
setsAliases.put("MM3", "Modern Masters 2017");
setsAliases.put("MMQ", "Mercadian Masques");
setsAliases.put("MOR", "Morningtide");
setsAliases.put("MPRP", "Magic Player Rewards");
// setsAliases.put("MPRP", "Magic Player Rewards");
setsAliases.put("MPS", "Masterpiece Series");
setsAliases.put("MRD", "Mirrodin");
setsAliases.put("NEM", "Nemesis");