From ea96f253c1351df9530f49428f4b1a48ef8907fe Mon Sep 17 00:00:00 2001 From: PurpleCrowbar Date: Sun, 5 Jun 2022 20:15:42 +0100 Subject: [PATCH] Added CNS token images --- .../card/dl/sources/ScryfallImageSupportTokens.java | 10 ++++++++++ Mage.Client/src/main/resources/card-pictures-tok.txt | 5 ++--- .../game/permanent/token/DarettiConstructToken.java | 5 ----- .../mage/game/permanent/token/DemonFlyingToken.java | 2 +- 4 files changed, 13 insertions(+), 9 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 0ba095318c..e9b0ad7870 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 @@ -1420,6 +1420,16 @@ public class ScryfallImageSupportTokens { put ("MD1/Soldier", "https://api.scryfall.com/cards/tmd1/1/en?format=image"); put ("MD1/Spirit", "https://api.scryfall.com/cards/tmd1/2/en?format=image"); + // CNS + put ("CNS/Construct", "https://api.scryfall.com/cards/tcns/8/en?format=image"); + put ("CNS/Emblem Dack Fayden", "https://api.scryfall.com/cards/tcns/9/en?format=image"); + put ("CNS/Demon", "https://api.scryfall.com/cards/tcns/2/en?format=image"); + put ("CNS/Elephant", "https://api.scryfall.com/cards/tcns/5/en?format=image"); + put ("CNS/Spirit", "https://api.scryfall.com/cards/tcns/1/en?format=image"); + put ("CNS/Squirrel", "https://api.scryfall.com/cards/tcns/6/en?format=image"); + put ("CNS/Wolf", "https://api.scryfall.com/cards/tcns/7/en?format=image"); + put ("CNS/Zombie", "https://api.scryfall.com/cards/tcns/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 6d6430cd2a..9a972bfeb1 100644 --- a/Mage.Client/src/main/resources/card-pictures-tok.txt +++ b/Mage.Client/src/main/resources/card-pictures-tok.txt @@ -480,9 +480,8 @@ |Generate|TOK:CN2|Soldier|2| |Generate|TOK:CN2|Spirit|| |Generate|TOK:CN2|Zombie|| -|Generate|TOK:CNS|Constructdefender|||DarettiConstructToken| -|Generate|TOK:CNS|Construct|| -|Generate|TOK:CNS|Demon|||ReignOfThePitToken| +|Generate|TOK:CNS|Construct|||DarettiConstructToken| +|Generate|TOK:CNS|Demon|||DemonFlyingToken| |Generate|TOK:CNS|Elephant|||ElephantToken| |Generate|TOK:CNS|Ogre|| |Generate|TOK:CNS|Spirit|||SpiritWhiteToken| diff --git a/Mage/src/main/java/mage/game/permanent/token/DarettiConstructToken.java b/Mage/src/main/java/mage/game/permanent/token/DarettiConstructToken.java index 3a68bfc7b2..2ff7420764 100644 --- a/Mage/src/main/java/mage/game/permanent/token/DarettiConstructToken.java +++ b/Mage/src/main/java/mage/game/permanent/token/DarettiConstructToken.java @@ -16,12 +16,7 @@ import java.util.Arrays; public final class DarettiConstructToken extends TokenImpl { public DarettiConstructToken() { - this("CNS"); - } - - public DarettiConstructToken(String setCode) { super("Construct Token", "1/1 colorless Construct artifact creature token with defender"); - this.setOriginalExpansionSetCode(setCode); cardType.add(CardType.ARTIFACT); cardType.add(CardType.CREATURE); subtype.add(SubType.CONSTRUCT); 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 dfbbdf7fa6..86ca93e807 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"); + availableImageSetCodes = Arrays.asList("C14", "C21", "NCC", "DDC", "CNS"); } public DemonFlyingToken(final DemonFlyingToken token) {