From 4d3e41fa358c78103c47df465aba94d903f81cce Mon Sep 17 00:00:00 2001 From: Thomas Hess Date: Thu, 16 Jan 2020 18:44:50 +0100 Subject: [PATCH] Adjust Asia Pacific Land Program set abbreviation to match Scryfall. --- Mage.Client/src/main/java/mage/client/cards/DragCardGrid.java | 2 +- .../java/org/mage/plugins/card/dl/sources/GathererSets.java | 2 +- .../plugins/card/dl/sources/ScryfallImageSupportCards.java | 3 ++- Mage.Sets/src/mage/sets/AsiaPacificLandProgram.java | 4 +++- Mage.Verify/src/main/java/mage/verify/MtgJson.java | 2 +- 5 files changed, 8 insertions(+), 5 deletions(-) diff --git a/Mage.Client/src/main/java/mage/client/cards/DragCardGrid.java b/Mage.Client/src/main/java/mage/client/cards/DragCardGrid.java index 9a7e144f47..d999dcd2dd 100644 --- a/Mage.Client/src/main/java/mage/client/cards/DragCardGrid.java +++ b/Mage.Client/src/main/java/mage/client/cards/DragCardGrid.java @@ -1508,7 +1508,7 @@ public class DragCardGrid extends JPanel implements DragCardSource, DragCardTarg pimpedSets.put("ARENA", 1); pimpedSets.put("UGIN", 1); pimpedSets.put("WMCQ", 1); - pimpedSets.put("APAC", 1); + pimpedSets.put("PALP", 1); pimpedSets.put("EURO", 1); pimpedSets.put("FNMP", 1); pimpedSets.put("MGDC", 1); diff --git a/Mage.Client/src/main/java/org/mage/plugins/card/dl/sources/GathererSets.java b/Mage.Client/src/main/java/org/mage/plugins/card/dl/sources/GathererSets.java index acd17bb3ff..ff90485a40 100644 --- a/Mage.Client/src/main/java/org/mage/plugins/card/dl/sources/GathererSets.java +++ b/Mage.Client/src/main/java/org/mage/plugins/card/dl/sources/GathererSets.java @@ -61,7 +61,7 @@ public class GathererSets implements Iterable { "POR", "P02", "PTK", "ARC", "DD3EVG", "W16", "W17", - // "APAC" -- gatherer do not have that set, scryfall has PALP + // "PALP" -- Gatherer does not have the set Asia Pacific Land Program // "ARENA" -- is't many set with different codes, not one // "ATH" -- has cards from many sets, symbol does not exist on gatherer // "CLASH", "CP", "DPA", "EURO", "FNMP", "GPX", "GRC", "GUR", "H17", "JR", "MBP", "MGDC", "MLP", "MPRP", "PTC", "SUS", "SWS", "WMCQ", // need to fix diff --git a/Mage.Client/src/main/java/org/mage/plugins/card/dl/sources/ScryfallImageSupportCards.java b/Mage.Client/src/main/java/org/mage/plugins/card/dl/sources/ScryfallImageSupportCards.java index f49dce89f1..1ab5ef1f00 100644 --- a/Mage.Client/src/main/java/org/mage/plugins/card/dl/sources/ScryfallImageSupportCards.java +++ b/Mage.Client/src/main/java/org/mage/plugins/card/dl/sources/ScryfallImageSupportCards.java @@ -258,7 +258,8 @@ public class ScryfallImageSupportCards { add("ELD"); add("THB"); // - add("EURO"); + add("PALP"); + add("PELP"); add("GPX"); add("ATH"); add("GRC"); diff --git a/Mage.Sets/src/mage/sets/AsiaPacificLandProgram.java b/Mage.Sets/src/mage/sets/AsiaPacificLandProgram.java index c14cd2c22f..261edd70b4 100644 --- a/Mage.Sets/src/mage/sets/AsiaPacificLandProgram.java +++ b/Mage.Sets/src/mage/sets/AsiaPacificLandProgram.java @@ -18,8 +18,10 @@ public final class AsiaPacificLandProgram extends ExpansionSet { } private AsiaPacificLandProgram() { - super("Asia Pacific Land Program", "APAC", ExpansionSet.buildDate(1997, 10, 13), SetType.PROMOTIONAL); + super("Asia Pacific Land Program", "PALP", ExpansionSet.buildDate(1997, 10, 13), SetType.PROMOTIONAL); this.hasBoosters = false; + this.hasBasicLands = true; + cards.add(new SetCardInfo("Forest", 1, Rarity.LAND, mage.cards.basiclands.Forest.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Forest", 6, Rarity.LAND, mage.cards.basiclands.Forest.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Forest", 11, Rarity.LAND, mage.cards.basiclands.Forest.class, NON_FULL_USE_VARIOUS)); diff --git a/Mage.Verify/src/main/java/mage/verify/MtgJson.java b/Mage.Verify/src/main/java/mage/verify/MtgJson.java index af284491bc..771b4ef0ad 100644 --- a/Mage.Verify/src/main/java/mage/verify/MtgJson.java +++ b/Mage.Verify/src/main/java/mage/verify/MtgJson.java @@ -38,7 +38,7 @@ public final class MtgJson { mtgJsonToXMageCodes.put("pFNM", "FNMP"); mtgJsonToXMageCodes.put("pELP", "EURO"); mtgJsonToXMageCodes.put("pARL", "ARENA"); - mtgJsonToXMageCodes.put("pALP", "APAC"); + mtgJsonToXMageCodes.put("pALP", "PALP"); mtgJsonToXMageCodes.put("PO2", "P02"); mtgJsonToXMageCodes.put("DD3_JVC", "DD3JVC"); mtgJsonToXMageCodes.put("DD3_GVL", "DDD");