From 2b43af4d7e5ad4203dbecf8b597092fa74d69554 Mon Sep 17 00:00:00 2001 From: PurpleCrowbar Date: Sun, 5 Jun 2022 19:50:13 +0100 Subject: [PATCH] Added MD1 token images --- .../card/dl/sources/ScryfallImageSupportTokens.java | 6 ++++++ Mage.Client/src/main/resources/card-pictures-tok.txt | 8 +++++++- .../java/mage/game/permanent/token/PhyrexianMyrToken.java | 2 +- .../main/java/mage/game/permanent/token/SoldierToken.java | 2 +- .../java/mage/game/permanent/token/SpiritWhiteToken.java | 2 +- 5 files changed, 16 insertions(+), 4 deletions(-) diff --git a/Mage.Client/src/main/java/org/mage/plugins/card/dl/sources/ScryfallImageSupportTokens.java b/Mage.Client/src/main/java/org/mage/plugins/card/dl/sources/ScryfallImageSupportTokens.java index 87b2a7b23a..0ba095318c 100644 --- a/Mage.Client/src/main/java/org/mage/plugins/card/dl/sources/ScryfallImageSupportTokens.java +++ b/Mage.Client/src/main/java/org/mage/plugins/card/dl/sources/ScryfallImageSupportTokens.java @@ -1414,6 +1414,12 @@ public class ScryfallImageSupportTokens { put ("JOU/Spider", "https://api.scryfall.com/cards/tjou/5/en?format=image"); put ("JOU/Zombie", "https://api.scryfall.com/cards/tjou/2/en?format=image"); + // MD1 + put ("MD1/Emblem Elspeth, Knight Errant", "https://api.scryfall.com/cards/tmd1/4/en?format=image"); + put ("MD1/Phyrexian Myr", "https://api.scryfall.com/cards/tmd1/3/en?format=image"); + put ("MD1/Soldier", "https://api.scryfall.com/cards/tmd1/1/en?format=image"); + put ("MD1/Spirit", "https://api.scryfall.com/cards/tmd1/2/en?format=image"); + // generate supported sets supportedSets.clear(); for (String cardName : this.keySet()) { diff --git a/Mage.Client/src/main/resources/card-pictures-tok.txt b/Mage.Client/src/main/resources/card-pictures-tok.txt index 0bdc00832b..6d6430cd2a 100644 --- a/Mage.Client/src/main/resources/card-pictures-tok.txt +++ b/Mage.Client/src/main/resources/card-pictures-tok.txt @@ -94,6 +94,7 @@ |Generate|EMBLEM:M14|Garruk, Caller of Beasts||Emblem Garruk|GarrukCallerOfBeastsEmblem| |Generate|EMBLEM:M14|Liliana of the Dark Realms||Emblem Liliana|LilianaOfTheDarkRealmsEmblem| |Generate|EMBLEM:MMA|Elspeth, Knight Errant||Emblem Elspeth|ElspethKnightErrantEmblem| +|Generate|EMBLEM:MD1|Elspeth, Knight Errant||Emblem Elspeth|ElspethKnightErrantEmblem| |Generate|EMBLEM:SWS|Obi-Wan Kenobi||Emblem Obi-Wan Kenobi|ObiWanKenobiEmblem| |Generate|EMBLEM:RIX|Huatli, Radiant Champion||Emblem Huatli|HuatliRadiantChampionEmblem| |Generate|EMBLEM:RNA|Domri, Chaos Bringer||Emblem Domri|DomriChaosBringerEmblem| @@ -1802,4 +1803,9 @@ # DD1 |Generate|TOK:DD1|Elemental|||VoiceOfTheWoodsElementalToken| |Generate|TOK:DD1|Elf Warrior|||ElfWarriorToken| -|Generate|TOK:DD1|Goblin|||GoblinToken| \ No newline at end of file +|Generate|TOK:DD1|Goblin|||GoblinToken| + +# MD1 +|Generate|TOK:MD1|Phyrexian Myr|||PhyrexianMyrToken| +|Generate|TOK:MD1|Soldier|||SoldierToken| +|Generate|TOK:MD1|Spirit|||SpiritWhiteToken| \ No newline at end of file diff --git a/Mage/src/main/java/mage/game/permanent/token/PhyrexianMyrToken.java b/Mage/src/main/java/mage/game/permanent/token/PhyrexianMyrToken.java index e32a16fbae..2abe2c0d50 100644 --- a/Mage/src/main/java/mage/game/permanent/token/PhyrexianMyrToken.java +++ b/Mage/src/main/java/mage/game/permanent/token/PhyrexianMyrToken.java @@ -17,7 +17,7 @@ public final class PhyrexianMyrToken extends TokenImpl { power = new MageInt(1); toughness = new MageInt(1); - availableImageSetCodes = Arrays.asList("NPH"); + availableImageSetCodes = Arrays.asList("NPH", "MD1"); } public PhyrexianMyrToken(final PhyrexianMyrToken token) { diff --git a/Mage/src/main/java/mage/game/permanent/token/SoldierToken.java b/Mage/src/main/java/mage/game/permanent/token/SoldierToken.java index dd5bdc1b06..bb84993e39 100644 --- a/Mage/src/main/java/mage/game/permanent/token/SoldierToken.java +++ b/Mage/src/main/java/mage/game/permanent/token/SoldierToken.java @@ -22,7 +22,7 @@ public final class SoldierToken extends TokenImpl { availableImageSetCodes = Arrays.asList("10E", "M15", "C14", "ORI", "ALA", "DDF", "THS", "M12", "M13", "MM2", "MMA", "RTR", "SOM", "DDO", "M10", "ORI", "EMN", "EMA", "CN2", "C16", "C18", "MM3", "E01", - "DOM", "MH1", "M20", "C20", "M21", "CMR", "KHC", "TSR", "2XM", "MED", "M19"); + "DOM", "MH1", "M20", "C20", "M21", "CMR", "KHC", "TSR", "2XM", "MED", "M19", "MD1"); } public SoldierToken(final SoldierToken token) { diff --git a/Mage/src/main/java/mage/game/permanent/token/SpiritWhiteToken.java b/Mage/src/main/java/mage/game/permanent/token/SpiritWhiteToken.java index 6c0df4f0d3..3a15319a3b 100644 --- a/Mage/src/main/java/mage/game/permanent/token/SpiritWhiteToken.java +++ b/Mage/src/main/java/mage/game/permanent/token/SpiritWhiteToken.java @@ -24,7 +24,7 @@ public final class SpiritWhiteToken extends TokenImpl { availableImageSetCodes = Arrays.asList("AVR", "C14", "CNS", "DDC", "DDK", "FRF", "ISD", "KTK", "M15", "MM2", "SHM", "SOI", "EMA", "C16", "MM3", "CMA", "E01", "ANA", "GPT", "RAV", "EMN", "RNA", "M20", "C19", "C20", "CMR", "KHM", - "MID", "VOW", "UMA", "BBD", "IMA", "CM2"); + "MID", "VOW", "UMA", "BBD", "IMA", "CM2", "MD1"); } @Override