From 8e08b70348f1678219e5ac79abd9bbd3731c911c Mon Sep 17 00:00:00 2001 From: PurpleCrowbar Date: Mon, 6 Jun 2022 14:00:10 +0100 Subject: [PATCH] Added DDS token images --- .../card/dl/sources/ScryfallImageSupportTokens.java | 9 +++++++++ Mage.Client/src/main/resources/card-pictures-tok.txt | 11 ++++++++++- .../java/mage/game/permanent/token/BeastToken2.java | 2 +- .../java/mage/game/permanent/token/DrakeToken.java | 2 +- .../java/mage/game/permanent/token/ElephantToken.java | 2 +- .../mage/game/permanent/token/ElfWarriorToken.java | 2 +- .../java/mage/game/permanent/token/GoblinToken.java | 2 +- .../mage/game/permanent/token/RedElementalToken.java | 2 +- .../java/mage/game/permanent/token/WurmToken.java | 2 +- 9 files changed, 26 insertions(+), 8 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 e68eddac5f..8e984af08c 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 @@ -1582,6 +1582,15 @@ public class ScryfallImageSupportTokens { put ("MM3/Wurm", "https://api.scryfall.com/cards/tmm3/15/en?format=image"); put ("MM3/Zombie", "https://api.scryfall.com/cards/tmm3/6/en?format=image"); + // DDS + put ("DDS/Beast", "https://api.scryfall.com/cards/tdds/4/en?format=image"); + put ("DDS/Drake", "https://api.scryfall.com/cards/tdds/1/en?format=image"); + put ("DDS/Elemental", "https://api.scryfall.com/cards/tdds/2/en?format=image"); + put ("DDS/Elephant", "https://api.scryfall.com/cards/tdds/5/en?format=image"); + put ("DDS/Elf Warrior", "https://api.scryfall.com/cards/tdds/6/en?format=image"); + put ("DDS/Goblin", "https://api.scryfall.com/cards/tdds/3/en?format=image"); + put ("DDS/Wurm", "https://api.scryfall.com/cards/tdds/7/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 77dba7f02a..eb752f7f28 100644 --- a/Mage.Client/src/main/resources/card-pictures-tok.txt +++ b/Mage.Client/src/main/resources/card-pictures-tok.txt @@ -1801,4 +1801,13 @@ |Generate|TOK:DDR|Demon|||DemonToken| |Generate|TOK:DDR|Zombie Giant|||QuestForTheGravelordZombieToken| |Generate|TOK:DDR|Elemental|||WalkerOfTheGroveToken| -|Generate|TOK:DDR|Plant|||PlantToken| \ No newline at end of file +|Generate|TOK:DDR|Plant|||PlantToken| + +# DDS +|Generate|TOK:DDS|Beast|||BeastToken2| +|Generate|TOK:DDS|Drake|||DrakeToken| +|Generate|TOK:DDS|Elemental|||RedElementalToken| +|Generate|TOK:DDS|Elephant|||ElephantToken| +|Generate|TOK:DDS|Elf Warrior|||ElfWarriorToken| +|Generate|TOK:DDS|Goblin|||GoblinToken| +|Generate|TOK:DDS|Wurm|||WurmToken| \ No newline at end of file diff --git a/Mage/src/main/java/mage/game/permanent/token/BeastToken2.java b/Mage/src/main/java/mage/game/permanent/token/BeastToken2.java index bc0700efdc..4f6634980f 100644 --- a/Mage/src/main/java/mage/game/permanent/token/BeastToken2.java +++ b/Mage/src/main/java/mage/game/permanent/token/BeastToken2.java @@ -20,7 +20,7 @@ public final class BeastToken2 extends TokenImpl { toughness = new MageInt(4); availableImageSetCodes = Arrays.asList("C14", "C15", "C18", "C19", "CMA", "CMD", "GVL", "DDD", - "E01", "ODY", "SCG", "ZEN", "C20", "ZNC", "CMR", "C21", "MH2", "MID", "IMA", "MM3"); + "E01", "ODY", "SCG", "ZEN", "C20", "ZNC", "CMR", "C21", "MH2", "MID", "IMA", "MM3", "DDS"); } public BeastToken2(final BeastToken2 token) { diff --git a/Mage/src/main/java/mage/game/permanent/token/DrakeToken.java b/Mage/src/main/java/mage/game/permanent/token/DrakeToken.java index 24006266c9..ef2465275c 100644 --- a/Mage/src/main/java/mage/game/permanent/token/DrakeToken.java +++ b/Mage/src/main/java/mage/game/permanent/token/DrakeToken.java @@ -24,7 +24,7 @@ public final class DrakeToken extends TokenImpl { this.addAbility(FlyingAbility.getInstance()); - availableImageSetCodes = Arrays.asList("AKH", "C15", "C19", "M13", "C20", "ZNR", "C21", "UMA", "NCC"); + availableImageSetCodes = Arrays.asList("AKH", "C15", "C19", "M13", "C20", "ZNR", "C21", "UMA", "NCC", "DDS"); } public DrakeToken(final DrakeToken token) { diff --git a/Mage/src/main/java/mage/game/permanent/token/ElephantToken.java b/Mage/src/main/java/mage/game/permanent/token/ElephantToken.java index c51a68421e..58086f76e2 100644 --- a/Mage/src/main/java/mage/game/permanent/token/ElephantToken.java +++ b/Mage/src/main/java/mage/game/permanent/token/ElephantToken.java @@ -20,7 +20,7 @@ public final class ElephantToken extends TokenImpl { toughness = new MageInt(3); availableImageSetCodes = Arrays.asList("C14", "C15", "CMA", "CMD", "CNS", "GVL", "DDD", - "EMA", "INV", "JUD", "MM2", "ODY", "TSP", "VMA", "WWK", "MH1", "CMR", "C21", "MIC", "NEC", "2XM", "NCC", "MM3"); + "EMA", "INV", "JUD", "MM2", "ODY", "TSP", "VMA", "WWK", "MH1", "CMR", "C21", "MIC", "NEC", "2XM", "NCC", "MM3", "DDS"); } public ElephantToken(final ElephantToken token) { 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 c7d09b9a3c..6cb27c3e2e 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", "DD1"); + availableImageSetCodes = Arrays.asList("C14", "C16", "EVG", "EMA", "LRW", "ORI", "SHM", "M19", "CMR", "KHM", "NCC", "DDU", "CMA", "DD1", "DDS"); } 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 f8bb0e067f..9107f6302f 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", "M13", "RTR", "MMA", "M15", "C14", "KTK", "EVG", "DTK", "ORI", "DDG", "DDN", "MM2", - "MM3", "EMA", "C16", "DOM", "ANA", "RNA", "WAR", "MH1", "TSR", "MH2", "AFR", "NEC", "M19", "CM2", "PCA", "DD1"); + "MM3", "EMA", "C16", "DOM", "ANA", "RNA", "WAR", "MH1", "TSR", "MH2", "AFR", "NEC", "M19", "CM2", "PCA", "DD1", "DDS"); } public GoblinToken(final GoblinToken token) { diff --git a/Mage/src/main/java/mage/game/permanent/token/RedElementalToken.java b/Mage/src/main/java/mage/game/permanent/token/RedElementalToken.java index fcd7385dbc..435450b72a 100644 --- a/Mage/src/main/java/mage/game/permanent/token/RedElementalToken.java +++ b/Mage/src/main/java/mage/game/permanent/token/RedElementalToken.java @@ -20,7 +20,7 @@ public final class RedElementalToken extends TokenImpl { power = new MageInt(1); toughness = new MageInt(1); - availableImageSetCodes = Arrays.asList("EMA", "M14", "SHM", "MH1", "M20", "RIX", "UMA", "NEC"); + availableImageSetCodes = Arrays.asList("EMA", "M14", "SHM", "MH1", "M20", "RIX", "UMA", "NEC", "DDS"); } @Override diff --git a/Mage/src/main/java/mage/game/permanent/token/WurmToken.java b/Mage/src/main/java/mage/game/permanent/token/WurmToken.java index 7362612740..3ec8b21af9 100644 --- a/Mage/src/main/java/mage/game/permanent/token/WurmToken.java +++ b/Mage/src/main/java/mage/game/permanent/token/WurmToken.java @@ -19,7 +19,7 @@ public final class WurmToken extends TokenImpl { power = new MageInt(6); toughness = new MageInt(6); - availableImageSetCodes = Arrays.asList("C19", "EMA", "GPT", "JUD", "M12", "M13", "MM3", "ODY", "VMA", "C21"); + availableImageSetCodes = Arrays.asList("C19", "EMA", "GPT", "JUD", "M12", "M13", "MM3", "ODY", "VMA", "C21", "DDS"); } @Override