From f374d74dc2fd3aa873e9c4b8fb86f0f90e0900ef Mon Sep 17 00:00:00 2001 From: Thomas Hess Date: Tue, 4 Feb 2020 13:45:06 +0100 Subject: [PATCH] Add the Release Events (PREL) promotional set. --- .../java/mage/client/cards/DragCardGrid.java | 1 + .../dl/sources/ScryfallImageSupportCards.java | 1 + Mage.Sets/src/mage/sets/ReleaseEvents.java | 39 +++++++++++++++++++ 3 files changed, 41 insertions(+) create mode 100644 Mage.Sets/src/mage/sets/ReleaseEvents.java 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 33f6dc6721..0f34960c96 100644 --- a/Mage.Client/src/main/java/mage/client/cards/DragCardGrid.java +++ b/Mage.Client/src/main/java/mage/client/cards/DragCardGrid.java @@ -1580,6 +1580,7 @@ public class DragCardGrid extends JPanel implements DragCardSource, DragCardTarg pimpedSets.put("P11", 1); pimpedSets.put("OVNT", 1); // Vintage Championship + pimpedSets.put("PREL", 1); // Release Events pimpedSets.put("MGDC", 1); pimpedSets.put("EXP", 1); pimpedSets.put("GPX", 1); 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 599315262f..24d900ab01 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 @@ -103,6 +103,7 @@ public class ScryfallImageSupportCards { add("PHPR"); add("PLGM"); add("OVNT"); // Vintage Championship + add("PREL"); // Release Events add("MGB"); add("ULG"); diff --git a/Mage.Sets/src/mage/sets/ReleaseEvents.java b/Mage.Sets/src/mage/sets/ReleaseEvents.java new file mode 100644 index 0000000000..7d9afc40b0 --- /dev/null +++ b/Mage.Sets/src/mage/sets/ReleaseEvents.java @@ -0,0 +1,39 @@ +package mage.sets; + +import mage.cards.ExpansionSet; +import mage.constants.Rarity; +import mage.constants.SetType; + +/** + * https://scryfall.com/sets/prel + */ +public class ReleaseEvents extends ExpansionSet { + + private static final ReleaseEvents instance = new ReleaseEvents(); + + public static ReleaseEvents getInstance() { + return instance; + } + + private ReleaseEvents() { + super("Release Events", "PREL", ExpansionSet.buildDate(2007, 10, 12), SetType.PROMOTIONAL); + this.hasBoosters = false; + this.hasBasicLands = false; + + // Silver-bordered card not implemented + // cards.add(new SetCardInfo("Ass Whuppin'", 2, Rarity.RARE, mage.cards.a.AssWhuppin.class)); + cards.add(new SetCardInfo("Azorius Guildmage", 9, Rarity.RARE, mage.cards.a.AzoriusGuildmage.class)); + cards.add(new SetCardInfo("Budoka Pupil", "3a", Rarity.UNCOMMON, mage.cards.b.BudokaPupil.class)); + cards.add(new SetCardInfo("Dimir Guildmage", 7, Rarity.RARE, mage.cards.d.DimirGuildmage.class)); + cards.add(new SetCardInfo("Force of Nature", 5, Rarity.RARE, mage.cards.f.ForceOfNature.class)); + cards.add(new SetCardInfo("Ghost-Lit Raider", 4, Rarity.RARE, mage.cards.g.GhostLitRaider.class)); + cards.add(new SetCardInfo("Gruul Guildmage", 8, Rarity.RARE, mage.cards.g.GruulGuildmage.class)); + cards.add(new SetCardInfo("Hedge Troll", 11, Rarity.RARE, mage.cards.h.HedgeTroll.class)); + cards.add(new SetCardInfo("Rukh Egg", 1, Rarity.RARE, mage.cards.r.RukhEgg.class)); + // Russian-only printing + //cards.add(new SetCardInfo("Shivan Dragon", 6, Rarity.RARE, mage.cards.s.ShivanDragon.class)); + cards.add(new SetCardInfo("Shriekmaw", 13, Rarity.RARE, mage.cards.s.Shriekmaw.class)); + cards.add(new SetCardInfo("Storm Entity", 12, Rarity.RARE, mage.cards.s.StormEntity.class)); + cards.add(new SetCardInfo("Sudden Shock", 10, Rarity.RARE, mage.cards.s.SuddenShock.class)); + } +}