From dfa1981a9ee3cdb01041bdd8fd1823dac4111a7f Mon Sep 17 00:00:00 2001 From: PurpleCrowbar Date: Sat, 4 Jun 2022 18:25:23 +0100 Subject: [PATCH] Added DDD token images --- .../plugins/card/dl/sources/ScryfallImageSupportTokens.java | 5 +++++ Mage.Client/src/main/resources/card-pictures-tok.txt | 2 -- Mage/src/main/java/mage/game/permanent/token/BatToken.java | 2 +- Mage/src/main/java/mage/game/permanent/token/BeastToken.java | 3 +++ .../main/java/mage/game/permanent/token/PongifyApeToken.java | 2 +- 5 files changed, 10 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 f168c0d276..ab6a749b62 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 @@ -1262,6 +1262,11 @@ public class ScryfallImageSupportTokens { put ("DDE/Phyrexian Minion", "https://api.scryfall.com/cards/tdde/2/en?format=image"); put ("DDE/Saproling", "https://api.scryfall.com/cards/tdde/3/en?format=image"); + // DDD + put ("DDD/Beast/1", "https://api.scryfall.com/cards/tddd/1/en?format=image"); + put ("DDD/Beast/2", "https://api.scryfall.com/cards/tddd/2/en?format=image"); + put ("DDD/Elephant", "https://api.scryfall.com/cards/tddd/3/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 f88737faf0..51a51ca81e 100644 --- a/Mage.Client/src/main/resources/card-pictures-tok.txt +++ b/Mage.Client/src/main/resources/card-pictures-tok.txt @@ -520,8 +520,6 @@ |Generate|TOK:DDC|Demon|||DemonFlyingToken| |Generate|TOK:DDC|Spirit|||SpiritWhiteToken| |Generate|TOK:DDC|Thrull|||BreedingPitThrullToken| -|Generate|TOK:DDD|Ape|||PongifyApeToken| -|Generate|TOK:DDD|Bat|||BatToken| |Generate|TOK:DDD|Beast|1||BeastToken| |Generate|TOK:DDD|Beast|2||BeastToken2| |Generate|TOK:DDD|Elephant|||ElephantToken| diff --git a/Mage/src/main/java/mage/game/permanent/token/BatToken.java b/Mage/src/main/java/mage/game/permanent/token/BatToken.java index 90d678ae43..e65c109d82 100644 --- a/Mage/src/main/java/mage/game/permanent/token/BatToken.java +++ b/Mage/src/main/java/mage/game/permanent/token/BatToken.java @@ -18,7 +18,7 @@ public final class BatToken extends TokenImpl { toughness = new MageInt(1); this.addAbility(FlyingAbility.getInstance()); - availableImageSetCodes = Arrays.asList("C17", "GVL", "DDD", "GPT", "MMA", "M19", "MID", "VOC"); + availableImageSetCodes = Arrays.asList("C17", "GVL", "GPT", "MMA", "M19", "MID", "VOC"); } public BatToken(final BatToken token) { diff --git a/Mage/src/main/java/mage/game/permanent/token/BeastToken.java b/Mage/src/main/java/mage/game/permanent/token/BeastToken.java index 8806ae6a17..b942879181 100644 --- a/Mage/src/main/java/mage/game/permanent/token/BeastToken.java +++ b/Mage/src/main/java/mage/game/permanent/token/BeastToken.java @@ -50,6 +50,9 @@ public final class BeastToken extends TokenImpl { if (getOriginalExpansionSetCode() != null && getOriginalExpansionSetCode().equals("CMA")) { setTokenType(1); } + if (getOriginalExpansionSetCode() != null && getOriginalExpansionSetCode().equals("DDD")) { + setTokenType(1); + } } public BeastToken(final BeastToken token) { diff --git a/Mage/src/main/java/mage/game/permanent/token/PongifyApeToken.java b/Mage/src/main/java/mage/game/permanent/token/PongifyApeToken.java index 1834613e54..057b7cf51a 100644 --- a/Mage/src/main/java/mage/game/permanent/token/PongifyApeToken.java +++ b/Mage/src/main/java/mage/game/permanent/token/PongifyApeToken.java @@ -21,7 +21,7 @@ public final class PongifyApeToken extends TokenImpl { power = new MageInt(3); toughness = new MageInt(3); - availableImageSetCodes = Arrays.asList("C14", "GVL", "DDD", "DDG", "PLC", "ULG", "UNH", "TSR"); + availableImageSetCodes = Arrays.asList("C14", "GVL", "DDG", "PLC", "ULG", "UNH", "TSR"); } public PongifyApeToken(final PongifyApeToken token) {