From 4ba695e7414d29d312ecc8636023a9e9b333cf16 Mon Sep 17 00:00:00 2001 From: PurpleCrowbar Date: Sat, 4 Jun 2022 16:53:11 +0100 Subject: [PATCH] Added DD1 token images --- .../card/dl/sources/ScryfallImageSupportTokens.java | 5 +++++ Mage.Client/src/main/resources/card-pictures-tok.txt | 7 ++++++- .../java/mage/game/permanent/token/ElfWarriorToken.java | 2 +- .../main/java/mage/game/permanent/token/GoblinToken.java | 2 +- .../permanent/token/VoiceOfTheWoodsElementalToken.java | 2 +- 5 files changed, 14 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 b299d3cecb..d383291b8b 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 @@ -1211,6 +1211,11 @@ public class ScryfallImageSupportTokens { put ("MOR/Giant Warrior", "https://api.scryfall.com/cards/tmor/1/en?format=image"); put ("MOR/Treefolk Shaman", "https://api.scryfall.com/cards/tmor/3/en?format=image"); + // DD1 + put ("DD1/Elemental", "https://api.scryfall.com/cards/tdd1/T1/en?format=image"); + put ("DD1/Elf Warrior", "https://api.scryfall.com/cards/tdd1/T2/en?format=image"); + put ("DD1/Goblin", "https://api.scryfall.com/cards/tdd1/T3/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 6faacc0de4..b6912ae696 100644 --- a/Mage.Client/src/main/resources/card-pictures-tok.txt +++ b/Mage.Client/src/main/resources/card-pictures-tok.txt @@ -1846,4 +1846,9 @@ |Generate|TOK:PCA|Plant|||PlantToken| |Generate|TOK:PCA|Saproling|||SaprolingToken| |Generate|TOK:PCA|Spider|||PenumbraSpiderToken| -|Generate|TOK:PCA|Zombie|||ZombieToken| \ No newline at end of file +|Generate|TOK:PCA|Zombie|||ZombieToken| + +# DD1 +|Generate|TOK:DD1|Elemental|||VoiceOfTheWoodsElementalToken| +|Generate|TOK:DD1|Elf Warrior|||ElfWarriorToken| +|Generate|TOK:DD1|Goblin|||GoblinToken| \ No newline at end of file diff --git a/Mage/src/main/java/mage/game/permanent/token/ElfWarriorToken.java b/Mage/src/main/java/mage/game/permanent/token/ElfWarriorToken.java index ffd52fea90..c7d09b9a3c 100644 --- a/Mage/src/main/java/mage/game/permanent/token/ElfWarriorToken.java +++ b/Mage/src/main/java/mage/game/permanent/token/ElfWarriorToken.java @@ -20,7 +20,7 @@ public final class ElfWarriorToken extends TokenImpl { power = new MageInt(1); toughness = new MageInt(1); - availableImageSetCodes = Arrays.asList("C14", "C16", "EVG", "EMA", "LRW", "ORI", "SHM", "M19", "CMR", "KHM", "NCC", "DDU", "CMA"); + availableImageSetCodes = Arrays.asList("C14", "C16", "EVG", "EMA", "LRW", "ORI", "SHM", "M19", "CMR", "KHM", "NCC", "DDU", "CMA", "DD1"); } public ElfWarriorToken(final ElfWarriorToken token) { diff --git a/Mage/src/main/java/mage/game/permanent/token/GoblinToken.java b/Mage/src/main/java/mage/game/permanent/token/GoblinToken.java index 95d9914ae9..85058c052a 100644 --- a/Mage/src/main/java/mage/game/permanent/token/GoblinToken.java +++ b/Mage/src/main/java/mage/game/permanent/token/GoblinToken.java @@ -32,7 +32,7 @@ public final class GoblinToken extends TokenImpl { availableImageSetCodes = Arrays.asList("10E", "ALA", "SOM", "M10", "NPH", "M13", "RTR", "MMA", "M15", "C14", "KTK", "EVG", "DTK", "ORI", "DDG", "DDN", "EVG", "MM2", - "MM3", "EMA", "C16", "DOM", "ANA", "RNA", "WAR", "MH1", "TSR", "MH2", "AFR", "NEC", "M19", "CM2", "PCA"); + "MM3", "EMA", "C16", "DOM", "ANA", "RNA", "WAR", "MH1", "TSR", "MH2", "AFR", "NEC", "M19", "CM2", "PCA", "DD1"); } public GoblinToken(final GoblinToken token) { diff --git a/Mage/src/main/java/mage/game/permanent/token/VoiceOfTheWoodsElementalToken.java b/Mage/src/main/java/mage/game/permanent/token/VoiceOfTheWoodsElementalToken.java index 4057c26913..989a85ad74 100644 --- a/Mage/src/main/java/mage/game/permanent/token/VoiceOfTheWoodsElementalToken.java +++ b/Mage/src/main/java/mage/game/permanent/token/VoiceOfTheWoodsElementalToken.java @@ -23,7 +23,7 @@ public final class VoiceOfTheWoodsElementalToken extends TokenImpl { addAbility(TrampleAbility.getInstance()); - availableImageSetCodes.addAll(Arrays.asList("EVG", "KHC")); + availableImageSetCodes.addAll(Arrays.asList("DD1", "EVG", "KHC")); } public VoiceOfTheWoodsElementalToken(final VoiceOfTheWoodsElementalToken token) {