From d2e752bc22a9d3c4324d18812189dc0d26226a8e Mon Sep 17 00:00:00 2001 From: PurpleCrowbar Date: Mon, 6 Jun 2022 00:30:15 +0100 Subject: [PATCH] Added DVD token images --- .../plugins/card/dl/sources/ScryfallImageSupportTokens.java | 5 +++++ Mage.Client/src/main/resources/card-pictures-tok.txt | 4 ++-- .../mage/game/permanent/token/BreedingPitThrullToken.java | 2 +- .../java/mage/game/permanent/token/DemonFlyingToken.java | 2 +- .../java/mage/game/permanent/token/SpiritWhiteToken.java | 2 +- 5 files changed, 10 insertions(+), 5 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 af08932bb8..15c729f9e5 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 @@ -1458,6 +1458,11 @@ public class ScryfallImageSupportTokens { put ("GVL/Beast/2", "https://api.scryfall.com/cards/tgvl/9/en?format=image"); put ("GVL/Elephant", "https://api.scryfall.com/cards/tgvl/10/en?format=image"); + // DVD + put ("DVD/Demon", "https://api.scryfall.com/cards/tdvd/6/en?format=image"); + put ("DVD/Spirit", "https://api.scryfall.com/cards/tdvd/5/en?format=image"); + put ("DVD/Thrull", "https://api.scryfall.com/cards/tdvd/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 15b31554d4..512b480595 100644 --- a/Mage.Client/src/main/resources/card-pictures-tok.txt +++ b/Mage.Client/src/main/resources/card-pictures-tok.txt @@ -505,9 +505,9 @@ |Generate|TOK:DD3C|Beast|1| |Generate|TOK:DD3C|Beast|2| |Generate|TOK:DD3C|Elephant|| -|Generate|TOK:DVD|Demon|||ReignOfThePitToken| +|Generate|TOK:DVD|Demon|||DemonFlyingToken| |Generate|TOK:DVD|Spirit|||SpiritWhiteToken| -|Generate|TOK:DVD|Thrull|||BreedingPitBlackInsectToken| +|Generate|TOK:DVD|Thrull|||BreedingPitThrullToken| |Generate|TOK:DD3D|Elemental Shaman|| |Generate|TOK:GVL|Bat|||BatToken| |Generate|TOK:GVL|Beast|1||BeastToken| diff --git a/Mage/src/main/java/mage/game/permanent/token/BreedingPitThrullToken.java b/Mage/src/main/java/mage/game/permanent/token/BreedingPitThrullToken.java index 63215c20aa..fd207d7041 100644 --- a/Mage/src/main/java/mage/game/permanent/token/BreedingPitThrullToken.java +++ b/Mage/src/main/java/mage/game/permanent/token/BreedingPitThrullToken.java @@ -19,7 +19,7 @@ public final class BreedingPitThrullToken extends TokenImpl { power = new MageInt(0); toughness = new MageInt(1); - availableImageSetCodes = Arrays.asList("CMR", "DDC"); + availableImageSetCodes = Arrays.asList("CMR", "DDC", "DVD"); } public BreedingPitThrullToken(final BreedingPitThrullToken token) { diff --git a/Mage/src/main/java/mage/game/permanent/token/DemonFlyingToken.java b/Mage/src/main/java/mage/game/permanent/token/DemonFlyingToken.java index 86ca93e807..4a4f52dbb2 100644 --- a/Mage/src/main/java/mage/game/permanent/token/DemonFlyingToken.java +++ b/Mage/src/main/java/mage/game/permanent/token/DemonFlyingToken.java @@ -26,7 +26,7 @@ public final class DemonFlyingToken extends TokenImpl { addAbility(FlyingAbility.getInstance()); - availableImageSetCodes = Arrays.asList("C14", "C21", "NCC", "DDC", "CNS"); + availableImageSetCodes = Arrays.asList("C14", "C21", "NCC", "DDC", "CNS", "DVD"); } public DemonFlyingToken(final DemonFlyingToken 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 3a15319a3b..1f29b6ef41 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", "MD1"); + "MID", "VOW", "UMA", "BBD", "IMA", "CM2", "MD1", "DVD"); } @Override