From d4de0e8729baaa3119da886232987ea11e3847fe Mon Sep 17 00:00:00 2001 From: PurpleCrowbar Date: Sat, 4 Jun 2022 19:44:10 +0100 Subject: [PATCH] Added RTR token images --- .../dl/sources/ScryfallImageSupportTokens.java | 14 ++++++++++++++ .../src/main/resources/card-pictures-tok.txt | 2 +- .../permanent/token/MysticGenesisOozeToken.java | 2 +- .../permanent/token/UtvaraHellkiteDragonToken.java | 3 +-- 4 files changed, 17 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 5676d86e95..34d99516c1 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 @@ -1334,6 +1334,20 @@ public class ScryfallImageSupportTokens { // DDJ put ("DDJ/Saproling", "https://api.scryfall.com/cards/tddj/1/en?format=image"); + // RTR + put ("RTR/Assassin", "https://api.scryfall.com/cards/trtr/4/en?format=image"); + put ("RTR/Bird", "https://api.scryfall.com/cards/trtr/1/en?format=image"); + put ("RTR/Centaur", "https://api.scryfall.com/cards/trtr/7/en?format=image"); + put ("RTR/Dragon", "https://api.scryfall.com/cards/trtr/5/en?format=image"); + put ("RTR/Elemental", "https://api.scryfall.com/cards/trtr/12/en?format=image"); + put ("RTR/Goblin", "https://api.scryfall.com/cards/trtr/6/en?format=image"); + put ("RTR/Knight", "https://api.scryfall.com/cards/trtr/2/en?format=image"); + put ("RTR/Ooze", "https://api.scryfall.com/cards/trtr/8/en?format=image"); + put ("RTR/Rhino", "https://api.scryfall.com/cards/trtr/9/en?format=image"); + put ("RTR/Saproling", "https://api.scryfall.com/cards/trtr/10/en?format=image"); + put ("RTR/Soldier", "https://api.scryfall.com/cards/trtr/3/en?format=image"); + put ("RTR/Wurm", "https://api.scryfall.com/cards/trtr/11/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 f1474c62af..efdc0dacfc 100644 --- a/Mage.Client/src/main/resources/card-pictures-tok.txt +++ b/Mage.Client/src/main/resources/card-pictures-tok.txt @@ -1015,7 +1015,7 @@ |Generate|TOK:RTR|Elemental|||GreenAndWhiteElementalToken| |Generate|TOK:RTR|Goblin|||GoblinToken| |Generate|TOK:RTR|Knight|||KnightToken| -|Generate|TOK:RTR|Ooze|||MysticGenesisOozeToken| +|Generate|TOK:RTR|Ooze|||OozeToken| |Generate|TOK:RTR|Rhino|||RhinoToken| |Generate|TOK:RTR|Saproling|||SaprolingToken| |Generate|TOK:RTR|Soldier|||SoldierToken| diff --git a/Mage/src/main/java/mage/game/permanent/token/MysticGenesisOozeToken.java b/Mage/src/main/java/mage/game/permanent/token/MysticGenesisOozeToken.java index 254083d33f..79df1c315b 100644 --- a/Mage/src/main/java/mage/game/permanent/token/MysticGenesisOozeToken.java +++ b/Mage/src/main/java/mage/game/permanent/token/MysticGenesisOozeToken.java @@ -21,7 +21,7 @@ public final class MysticGenesisOozeToken extends TokenImpl { subtype.add(SubType.OOZE); power = new MageInt(xValue); toughness = new MageInt(xValue); - setOriginalExpansionSetCode("RTR"); + setOriginalExpansionSetCode("MM3"); } public MysticGenesisOozeToken(final MysticGenesisOozeToken token) { diff --git a/Mage/src/main/java/mage/game/permanent/token/UtvaraHellkiteDragonToken.java b/Mage/src/main/java/mage/game/permanent/token/UtvaraHellkiteDragonToken.java index 3c0f5c7095..7de30186e1 100644 --- a/Mage/src/main/java/mage/game/permanent/token/UtvaraHellkiteDragonToken.java +++ b/Mage/src/main/java/mage/game/permanent/token/UtvaraHellkiteDragonToken.java @@ -17,13 +17,12 @@ public final class UtvaraHellkiteDragonToken extends TokenImpl { static final private List tokenImageSets = new ArrayList<>(); static { - tokenImageSets.addAll(Arrays.asList("C17")); + tokenImageSets.addAll(Arrays.asList("RTR", "C17")); } public UtvaraHellkiteDragonToken() { super("Dragon Token", "6/6 red Dragon creature token with flying"); availableImageSetCodes = tokenImageSets; - setExpansionSetCodeForImage("C17"); cardType.add(CardType.CREATURE); color.setRed(true); subtype.add(SubType.DRAGON);