From bc899e7ea53977ed494ead237d46208481bb76c0 Mon Sep 17 00:00:00 2001 From: Oleg Agafonov Date: Thu, 16 Jan 2020 18:51:20 +0400 Subject: [PATCH] Added THB tokens --- .../dl/sources/ScryfallImageSupportTokens.java | 16 ++++++++++++++++ .../mage/game/permanent/token/GoatToken.java | 2 +- .../mage/game/permanent/token/SpiderToken.java | 7 +------ .../mage/game/permanent/token/WolfToken.java | 2 +- .../mage/game/permanent/token/ZombieToken.java | 2 +- 5 files changed, 20 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 c88dcda8f4..610370bb7e 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 @@ -334,6 +334,22 @@ public class ScryfallImageSupportTokens { put("ELD/Rat", "https://api.scryfall.com/cards/teld/6/en?format=image"); put("ELD/Wolf", "https://api.scryfall.com/cards/teld/14/en?format=image"); + // THB + put("THB/Elemental", "https://api.scryfall.com/cards/tthb/8/en?format=image"); + put("THB/Goat", "https://api.scryfall.com/cards/tthb/1/en?format=image"); + put("THB/Gold", "https://api.scryfall.com/cards/tthb/13/en?format=image"); + put("THB/Human Soldier", "https://api.scryfall.com/cards/tthb/2/en?format=image"); + put("THB/Kraken", "https://api.scryfall.com/cards/tthb/4/en?format=image"); + put("THB/Nightmare", "https://api.scryfall.com/cards/tthb/12/en?format=image"); + put("THB/Pegasus", "https://api.scryfall.com/cards/tthb/3/en?format=image"); + put("THB/Reflection", "https://api.scryfall.com/cards/tthb/5/en?format=image"); + put("THB/Satyr", "https://api.scryfall.com/cards/tthb/9/en?format=image"); + put("THB/Spider", "https://api.scryfall.com/cards/tthb/10/en?format=image"); + put("THB/Tentacle", "https://api.scryfall.com/cards/tthb/6/en?format=image"); + put("THB/Wall", "https://api.scryfall.com/cards/tthb/14/en?format=image"); + put("THB/Wolf", "https://api.scryfall.com/cards/tthb/11/en?format=image"); + put("THB/Zombie", "https://api.scryfall.com/cards/tthb/7/en?format=image"); + // generate supported sets supportedSets.clear(); for (String cardName : this.keySet()) { diff --git a/Mage/src/main/java/mage/game/permanent/token/GoatToken.java b/Mage/src/main/java/mage/game/permanent/token/GoatToken.java index 16c0ca7ba7..5f286483af 100644 --- a/Mage/src/main/java/mage/game/permanent/token/GoatToken.java +++ b/Mage/src/main/java/mage/game/permanent/token/GoatToken.java @@ -16,7 +16,7 @@ public final class GoatToken extends TokenImpl { static final private List tokenImageSets = new ArrayList<>(); static { - tokenImageSets.addAll(Arrays.asList("EVE", "M13", "M14", "C14", "ELD")); + tokenImageSets.addAll(Arrays.asList("EVE", "M13", "M14", "C14", "ELD", "THB")); } public GoatToken() { diff --git a/Mage/src/main/java/mage/game/permanent/token/SpiderToken.java b/Mage/src/main/java/mage/game/permanent/token/SpiderToken.java index 1d1cccb29b..6c5dd0e72f 100644 --- a/Mage/src/main/java/mage/game/permanent/token/SpiderToken.java +++ b/Mage/src/main/java/mage/game/permanent/token/SpiderToken.java @@ -1,8 +1,3 @@ -/* - * To change this license header, choose License Headers in Project Properties. - * To change this template file, choose Tools | Templates - * and open the template in the editor. - */ package mage.game.permanent.token; import mage.MageInt; @@ -22,7 +17,7 @@ public final class SpiderToken extends TokenImpl { static final private List tokenImageSets = new ArrayList<>(); static { - tokenImageSets.addAll(Arrays.asList("ISD", "EMN", "C15", "SHM", "MH1")); + tokenImageSets.addAll(Arrays.asList("ISD", "EMN", "C15", "SHM", "MH1", "THB")); } public SpiderToken() { diff --git a/Mage/src/main/java/mage/game/permanent/token/WolfToken.java b/Mage/src/main/java/mage/game/permanent/token/WolfToken.java index 9010e4f8f3..95eb587e00 100644 --- a/Mage/src/main/java/mage/game/permanent/token/WolfToken.java +++ b/Mage/src/main/java/mage/game/permanent/token/WolfToken.java @@ -17,7 +17,7 @@ public final class WolfToken extends TokenImpl { static { tokenImageSets.addAll(Arrays.asList("BNG", "C14", "CNS", "FNMP", "ISD", "LRW", "M10", "M14", "MM2", "SHM", "SOM", - "ZEN", "SOI", "C15", "M15", "WAR", "M20")); + "ZEN", "SOI", "C15", "M15", "WAR", "M20", "THB")); } public WolfToken() { diff --git a/Mage/src/main/java/mage/game/permanent/token/ZombieToken.java b/Mage/src/main/java/mage/game/permanent/token/ZombieToken.java index f52d3eb7ad..0518703268 100644 --- a/Mage/src/main/java/mage/game/permanent/token/ZombieToken.java +++ b/Mage/src/main/java/mage/game/permanent/token/ZombieToken.java @@ -18,7 +18,7 @@ public final class ZombieToken extends TokenImpl { static { tokenImageSets.addAll(Arrays.asList("10E", "M10", "M11", "M12", "M13", "M14", "M15", "MBS", "ALA", "ISD", "C14", "C15", "C16", "C17", "CNS", - "MMA", "BNG", "KTK", "DTK", "ORI", "OGW", "SOI", "EMN", "EMA", "MM3", "AKH", "CMA", "E01", "RNA", "WAR", "MH1", "M20", "C19")); + "MMA", "BNG", "KTK", "DTK", "ORI", "OGW", "SOI", "EMN", "EMA", "MM3", "AKH", "CMA", "E01", "RNA", "WAR", "MH1", "M20", "C19", "THB")); } public ZombieToken() {