From c63bd729bd017430f1e45ae603c88a27346224d9 Mon Sep 17 00:00:00 2001 From: PurpleCrowbar Date: Mon, 6 Jun 2022 02:04:07 +0100 Subject: [PATCH] Added DDR token images --- .../card/dl/sources/ScryfallImageSupportTokens.java | 8 ++++++++ Mage.Client/src/main/resources/card-pictures-tok.txt | 10 +++++++++- .../java/mage/game/permanent/token/DemonToken.java | 2 +- .../mage/game/permanent/token/EldraziScionToken.java | 2 +- .../java/mage/game/permanent/token/PlantToken.java | 2 +- 5 files changed, 20 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 e99fd4a7e3..d1ee540729 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 @@ -1551,6 +1551,14 @@ public class ScryfallImageSupportTokens { put ("CN2/Spirit", "https://api.scryfall.com/cards/tcn2/4/en?format=image"); put ("CN2/Zombie", "https://api.scryfall.com/cards/tcn2/6/en?format=image"); + // DDR + put ("DDR/Eldrazi Scion", "https://api.scryfall.com/cards/ddr/71/en?format=image"); + put ("DDR/Demon", "https://api.scryfall.com/cards/ddr/72/en?format=image"); + put ("DDR/Zombie Giant", "https://api.scryfall.com/cards/ddr/73/en?format=image"); + put ("DDR/Elemental", "https://api.scryfall.com/cards/ddr/74/en?format=image"); + put ("DDR/Plant", "https://api.scryfall.com/cards/ddr/75/en?format=image"); + put ("DDR/Emblem Nixilis", "https://api.scryfall.com/cards/ddr/76/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 bb798a0c20..7ff24d32cc 100644 --- a/Mage.Client/src/main/resources/card-pictures-tok.txt +++ b/Mage.Client/src/main/resources/card-pictures-tok.txt @@ -46,6 +46,7 @@ |Generate|EMBLEM!:BFZ|Emblem Gideon|||GideonAllyOfZendikarEmblem| |Generate|EMBLEM!:BFZ|Emblem Kiora|||KioraMasterOfTheDepthsEmblem| |Generate|EMBLEM!:BFZ|Emblem Nixilis|||ObNixilisReignitedEmblem| +|Generate|EMBLEM!:DDR|Emblem Nixilis|||ObNixilisReignitedEmblem| |Generate|EMBLEM!:AKH|Emblem Gideon|||GideonOfTheTrialsEmblem| |Generate|EMBLEM!:C14|Emblem Daretti|||DarettiScrapSavantEmblem| |Generate|EMBLEM!:C14|Emblem Nixilis|||ObNixilisOfTheBlackOathEmblem| @@ -1799,4 +1800,11 @@ |Generate|TOK:MD1|Spirit|||SpiritWhiteToken| # V16 -|Generate|TOK:V16|Marit Lage|||MaritLageToken| \ No newline at end of file +|Generate|TOK:V16|Marit Lage|||MaritLageToken| + +# DDR +|Generate|TOK:DDR|Eldrazi Scion|||EldraziScionToken| +|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 diff --git a/Mage/src/main/java/mage/game/permanent/token/DemonToken.java b/Mage/src/main/java/mage/game/permanent/token/DemonToken.java index 21f0f0afcb..c041a370c3 100644 --- a/Mage/src/main/java/mage/game/permanent/token/DemonToken.java +++ b/Mage/src/main/java/mage/game/permanent/token/DemonToken.java @@ -21,7 +21,7 @@ public final class DemonToken extends TokenImpl { toughness = new MageInt(5); addAbility(FlyingAbility.getInstance()); - availableImageSetCodes.addAll(Arrays.asList("AVR", "C14", "DD3A", "ISD", "ORI", "M20", "M21", "2XM")); + availableImageSetCodes.addAll(Arrays.asList("AVR", "C14", "DD3A", "ISD", "ORI", "M20", "M21", "2XM", "DDR")); } public DemonToken(final DemonToken token) { diff --git a/Mage/src/main/java/mage/game/permanent/token/EldraziScionToken.java b/Mage/src/main/java/mage/game/permanent/token/EldraziScionToken.java index c0d9ed6400..f029d8cdb5 100644 --- a/Mage/src/main/java/mage/game/permanent/token/EldraziScionToken.java +++ b/Mage/src/main/java/mage/game/permanent/token/EldraziScionToken.java @@ -23,7 +23,7 @@ public final class EldraziScionToken extends TokenImpl { static final private List tokenImageSets = new ArrayList<>(); static { - tokenImageSets.addAll(Arrays.asList("BFZ", "OGW")); + tokenImageSets.addAll(Arrays.asList("BFZ", "OGW", "DDR")); } public EldraziScionToken() { diff --git a/Mage/src/main/java/mage/game/permanent/token/PlantToken.java b/Mage/src/main/java/mage/game/permanent/token/PlantToken.java index a418bb3496..9bc3d7a488 100644 --- a/Mage/src/main/java/mage/game/permanent/token/PlantToken.java +++ b/Mage/src/main/java/mage/game/permanent/token/PlantToken.java @@ -16,7 +16,7 @@ public final class PlantToken extends TokenImpl { power = new MageInt(0); toughness = new MageInt(1); - availableImageSetCodes = Arrays.asList("ARC", "C18", "DDP", "OGW", "PC2", "WWK", "XLN", "ZNR", "CMR", "NEC", "2XM", "NCC", "PCA"); + availableImageSetCodes = Arrays.asList("ARC", "C18", "DDP", "OGW", "PC2", "WWK", "XLN", "ZNR", "CMR", "NEC", "2XM", "NCC", "PCA", "DDR"); } public PlantToken(final PlantToken token) {