Add 30A token images

This commit is contained in:
PurpleCrowbar 2023-04-18 15:02:13 +01:00
parent 05542f03a4
commit 85c98bc239
14 changed files with 56 additions and 13 deletions

View file

@ -1901,8 +1901,22 @@ public class ScryfallImageSupportTokens {
put ("ONC/Thopter", "https://api.scryfall.com/cards/tonc/21/en?format=image");
// 30A
// TODO: add another tokens
put ("30A/Beast", "https://api.scryfall.com/cards/t30a/8/en?format=image");
put ("30A/Bird", "https://api.scryfall.com/cards/t30a/4/en?format=image");
put ("30A/Clue/1", "https://api.scryfall.com/cards/t30a/11/en?format=image");
put ("30A/Clue/2", "https://api.scryfall.com/cards/t30a/12/en?format=image");
put ("30A/Demon", "https://api.scryfall.com/cards/t30a/6/en?format=image");
put ("30A/Human", "https://api.scryfall.com/cards/t30a/1/en?format=image");
put ("30A/Human Cleric", "https://api.scryfall.com/cards/t30a/10/en?format=image");
put ("30A/Human Warrior", "https://api.scryfall.com/cards/t30a/2/en?format=image");
put ("30A/Human Wizard", "https://api.scryfall.com/cards/t30a/5/en?format=image");
put ("30A/Skeleton", "https://api.scryfall.com/cards/t30a/7/en?format=image");
put ("30A/Soldier", "https://api.scryfall.com/cards/t30a/3/en?format=image");
put ("30A/Treasure/1", "https://api.scryfall.com/cards/t30a/13/en?format=image");
put ("30A/Treasure/2", "https://api.scryfall.com/cards/t30a/14/en?format=image");
put ("30A/Treasure/3", "https://api.scryfall.com/cards/t30a/15/en?format=image");
put ("30A/Wasp", "https://api.scryfall.com/cards/t30a/16/en?format=image");
put ("30A/Wolf", "https://api.scryfall.com/cards/t30a/9/en?format=image");
// generate supported sets
supportedSets.clear();

View file

@ -2017,5 +2017,19 @@
|Generate|TOK:ONC|Thopter|||ThopterColorlessToken|
# 30A
# TODO: add all 30A tokens here
|Generate|TOK:30A|Wasp|||WaspToken|
|Generate|TOK:30A|Beast|||BeastToken|
|Generate|TOK:30A|Bird|||BlueBirdToken|
|Generate|TOK:30A|Clue|1||ClueArtifactToken|
|Generate|TOK:30A|Clue|2||ClueArtifactToken|
|Generate|TOK:30A|Demon|||DemonToken|
|Generate|TOK:30A|Human|||HumanToken|
|Generate|TOK:30A|Human Cleric|||HumanCleric|
|Generate|TOK:30A|Human Warrior|||HumanWarriorToken|
|Generate|TOK:30A|Human Wizard|||HumanWizardToken|
|Generate|TOK:30A|Skeleton|||SkeletonToken|
|Generate|TOK:30A|Soldier|||SoldierToken|
|Generate|TOK:30A|Treasure|1||TreasureToken|
|Generate|TOK:30A|Treasure|2||TreasureToken|
|Generate|TOK:30A|Treasure|3||TreasureToken|
|Generate|TOK:30A|Wasp|||WaspToken|
|Generate|TOK:30A|Wolf|||WolfToken|

View file

@ -23,7 +23,7 @@ public final class BeastToken extends TokenImpl {
availableImageSetCodes = Arrays.asList("C14", "C16", "C19", "CMA", "CN2", "GVL",
"DD3C", "DD3GVL", "DDD", "DDL", "DST", "E01", "EVE", "LRW", "M10", "M11", "M12",
"M13", "M14", "M15", "MM3", "NPH", "PC2", "USG", "M19", "IKO", "M21", "CMR", "C21",
"AFC", "MIC", "NEC", "2XM", "NCC", "BBD", "PCA", "CLB", "DMU", "ONC");
"AFC", "MIC", "NEC", "2XM", "NCC", "BBD", "PCA", "CLB", "DMU", "ONC", "30A");
}
@Override

View file

@ -22,7 +22,7 @@ public final class BlueBirdToken extends TokenImpl {
this.addAbility(FlyingAbility.getInstance());
availableImageSetCodes = Arrays.asList("EVE", "INV", "KHM");
availableImageSetCodes = Arrays.asList("EVE", "INV", "KHM", "30A");
}
public BlueBirdToken(final BlueBirdToken token) {

View file

@ -29,7 +29,7 @@ public final class ClueArtifactToken extends TokenImpl {
ability.addCost(cost);
this.addAbility(ability);
availableImageSetCodes = Arrays.asList("C18", "SOI", "MH2", "AFC", "MID", "VOC", "SLD", "2XM", "NCC", "CLB", "40K");
availableImageSetCodes = Arrays.asList("C18", "SOI", "MH2", "AFC", "MID", "VOC", "SLD", "2XM", "NCC", "CLB", "40K", "30A");
}
@Override
@ -43,6 +43,10 @@ public final class ClueArtifactToken extends TokenImpl {
if (getOriginalExpansionSetCode().equals("MH2")) {
this.setTokenType(RandomUtil.nextInt(2) + 1); // 2 different images
}
if (getOriginalExpansionSetCode().equals("30A")) {
this.setTokenType(RandomUtil.nextInt(2) + 1); // 2 different images
}
}
public ClueArtifactToken(final ClueArtifactToken token) {

View file

@ -21,7 +21,7 @@ public final class DemonToken extends TokenImpl {
toughness = new MageInt(5);
addAbility(FlyingAbility.getInstance());
availableImageSetCodes.addAll(Arrays.asList("AVR", "C14", "DD3A", "ISD", "ORI", "M20", "M21", "2XM", "DDR", "GN3"));
availableImageSetCodes.addAll(Arrays.asList("AVR", "C14", "DD3A", "ISD", "ORI", "M20", "M21", "2XM", "DDR", "GN3", "30A"));
}
public DemonToken(final DemonToken token) {

View file

@ -5,6 +5,8 @@ import mage.constants.CardType;
import mage.constants.SubType;
import mage.MageInt;
import java.util.Arrays;
/**
*
* @author spjspj
@ -20,6 +22,8 @@ public final class HumanClericToken extends TokenImpl {
color.setBlack(true);
power = new MageInt(1);
toughness = new MageInt(1);
availableImageSetCodes.addAll(Arrays.asList("SOI", "30A"));
}
public HumanClericToken(final HumanClericToken token) {
super(token);

View file

@ -19,7 +19,7 @@ public final class HumanToken extends TokenImpl {
power = new MageInt(1);
toughness = new MageInt(1);
availableImageSetCodes.addAll(Arrays.asList("DKA", "AVR", "FNMP", "RNA", "ELD", "C19", "C20", "MID", "VOW", "NCC", "DDQ", "CLB", "DMC", "ONC"));
availableImageSetCodes.addAll(Arrays.asList("DKA", "AVR", "FNMP", "RNA", "ELD", "C19", "C20", "MID", "VOW", "NCC", "DDQ", "CLB", "DMC", "ONC", "30A"));
}
public HumanToken(final HumanToken token) {

View file

@ -20,7 +20,7 @@ public final class HumanWarriorToken extends TokenImpl {
power = new MageInt(1);
toughness = new MageInt(1);
availableImageSetCodes = Arrays.asList("KHM");
availableImageSetCodes = Arrays.asList("KHM", "30A");
}
private HumanWarriorToken(final HumanWarriorToken token) {

View file

@ -4,6 +4,8 @@ import mage.MageInt;
import mage.constants.CardType;
import mage.constants.SubType;
import java.util.Arrays;
public final class HumanWizardToken extends TokenImpl {
public HumanWizardToken() {
@ -14,6 +16,8 @@ public final class HumanWizardToken extends TokenImpl {
color.setBlue(true);
power = new MageInt(1);
toughness = new MageInt(1);
availableImageSetCodes = Arrays.asList("EMN", "30A");
}
public HumanWizardToken(final HumanWizardToken token) {

View file

@ -19,7 +19,7 @@ public final class SkeletonToken extends TokenImpl {
power = new MageInt(1);
toughness = new MageInt(1);
availableImageSetCodes = Arrays.asList("AFR");
availableImageSetCodes = Arrays.asList("AFR", "30A");
}
public SkeletonToken(final SkeletonToken token) {

View file

@ -22,7 +22,7 @@ public final class SoldierToken extends TokenImpl {
availableImageSetCodes = Arrays.asList("10E", "M15", "C14", "ORI", "ALA", "DDF", "THS", "M12", "M13",
"MM2", "MMA", "RTR", "SOM", "DDO", "M10", "ORI", "EMN", "EMA", "CN2", "C16", "C18", "MM3", "E01",
"DOM", "MH1", "M20", "C20", "M21", "CMR", "KHC", "TSR", "2XM", "MED", "M19", "MD1", "A25", "CLB", "2X2", "DMU", "GN3", "40K", "ONC");
"DOM", "MH1", "M20", "C20", "M21", "CMR", "KHC", "TSR", "2XM", "MED", "M19", "MD1", "A25", "CLB", "2X2", "DMU", "GN3", "40K", "ONC", "30A");
}
public SoldierToken(final SoldierToken token) {

View file

@ -30,7 +30,7 @@ public final class TreasureToken extends TokenImpl {
availableImageSetCodes = Arrays.asList("XLN", "RNA", "M20", "C19", "C20",
"M21", "CMR", "KHM", "STX", "MH2",
"AFR", "VOW", "NEO", "SLD", "2XM",
"SNC", "CLB", "2X2", "DMC", "GN3");
"SNC", "CLB", "2X2", "DMC", "GN3", "30A");
}
public TreasureToken(final TreasureToken token) {
@ -54,5 +54,8 @@ public final class TreasureToken extends TokenImpl {
if (getOriginalExpansionSetCode() != null && getOriginalExpansionSetCode().equals("MH2")) {
this.setTokenType(RandomUtil.nextInt(2) + 1);
}
if (getOriginalExpansionSetCode() != null && getOriginalExpansionSetCode().equals("30A")) {
this.setTokenType(RandomUtil.nextInt(3) + 1);
}
}
}

View file

@ -23,7 +23,7 @@ public final class WolfToken extends TokenImpl {
availableImageSetCodes = Arrays.asList("BNG", "C14", "C15", "CMA", "CNS", "ISD",
"LRW", "M10", "M14", "MM2", "SHM", "SOI", "SOM", "V10", "ZEN", "WAR", "M20",
"THB", "AFR", "MID", "VOW", "2XM", "A25", "CLB");
"THB", "AFR", "MID", "VOW", "2XM", "A25", "CLB", "30A");
}
@Override