From c813603647eb1c879d19d2817c820ebbb3c36aec Mon Sep 17 00:00:00 2001 From: PurpleCrowbar Date: Sat, 4 Jun 2022 17:15:34 +0100 Subject: [PATCH] Added 10E token images --- .../card/dl/sources/ScryfallImageSupportTokens.java | 8 ++++++++ Mage.Client/src/main/resources/card-pictures-tok.txt | 5 +---- .../java/mage/game/permanent/token/PongifyApeToken.java | 2 +- .../main/java/mage/game/permanent/token/WaspToken.java | 4 ++++ 4 files changed, 14 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 d383291b8b..a673adf907 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 @@ -1216,6 +1216,14 @@ public class ScryfallImageSupportTokens { 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"); + // 10E + put ("10E/Dragon", "https://api.scryfall.com/cards/t10e/3/en?format=image"); + put ("10E/Goblin", "https://api.scryfall.com/cards/t10e/4/en?format=image"); + put ("10E/Saproling", "https://api.scryfall.com/cards/t10e/5/en?format=image"); + put ("10E/Soldier", "https://api.scryfall.com/cards/t10e/1/en?format=image"); + put ("10E/Wasp", "https://api.scryfall.com/cards/t10e/6/en?format=image"); + put ("10E/Zombie", "https://api.scryfall.com/cards/t10e/2/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 b6912ae696..824322d009 100644 --- a/Mage.Client/src/main/resources/card-pictures-tok.txt +++ b/Mage.Client/src/main/resources/card-pictures-tok.txt @@ -154,15 +154,12 @@ |Generate|PLANE:PCA|Plane - Trail of the Mage-Rings|||TrailOfTheMageRingsPlane| |Generate|TOK:ANA|Goblin|||GoblinToken| |Generate|TOK:ANA|Spirit|||SpiritWhiteToken| -|Generate|TOK:10E|Ape|||PongifyApeToken| |Generate|TOK:10E|Dragon|||DragonToken2| |Generate|TOK:10E|Goblin|||GoblinToken| -|Generate|TOK:10E|Insect|||WaspToken| |Generate|TOK:10E|Saproling|||SaprolingToken| -|Generate|TOK:10E|Skeleton|||SkeletonRegenerateToken| |Generate|TOK:10E|Soldier|||SoldierToken| +|Generate|TOK:10E|Wasp|||WaspToken| |Generate|TOK:10E|Zombie|||ZombieToken| -|Generate|TOK:2ED|Insect|||WaspToken| |Generate|TOK:3ED|Djinn|||DjinnToken| |Generate|TOK:3ED|Insect|||WaspToken| |Generate|TOK:4ED|Assembly-Worker|||AssemblyWorkerToken| 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 bdbe3fece0..1834613e54 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("10E", "C14", "GVL", "DDD", "DDG", "PLC", "ULG", "UNH", "TSR"); + availableImageSetCodes = Arrays.asList("C14", "GVL", "DDD", "DDG", "PLC", "ULG", "UNH", "TSR"); } public PongifyApeToken(final PongifyApeToken token) { diff --git a/Mage/src/main/java/mage/game/permanent/token/WaspToken.java b/Mage/src/main/java/mage/game/permanent/token/WaspToken.java index e4580a6e0f..f0f97fea14 100644 --- a/Mage/src/main/java/mage/game/permanent/token/WaspToken.java +++ b/Mage/src/main/java/mage/game/permanent/token/WaspToken.java @@ -6,6 +6,8 @@ import mage.constants.SubType; import mage.MageInt; import mage.abilities.keyword.FlyingAbility; +import java.util.Arrays; + /** * * @author spjspj @@ -20,6 +22,8 @@ public final class WaspToken extends TokenImpl { power = new MageInt(1); toughness = new MageInt(1); this.addAbility(FlyingAbility.getInstance()); + + availableImageSetCodes = Arrays.asList("10E"); } public WaspToken(final WaspToken token) {