mirror of
https://github.com/correl/mage.git
synced 2024-11-28 19:19:55 +00:00
Added support for and assigned CMA token images
This commit is contained in:
parent
a8309f38f7
commit
8a4482ae93
10 changed files with 39 additions and 9 deletions
|
@ -1069,6 +1069,27 @@ public class ScryfallImageSupportTokens {
|
||||||
put ("CM2/Phyrexian Wurm/2", "https://api.scryfall.com/cards/tcm2/17/en?format=image");
|
put ("CM2/Phyrexian Wurm/2", "https://api.scryfall.com/cards/tcm2/17/en?format=image");
|
||||||
put ("CM2/Zombie", "https://api.scryfall.com/cards/tcm2/7/en?format=image");
|
put ("CM2/Zombie", "https://api.scryfall.com/cards/tcm2/7/en?format=image");
|
||||||
|
|
||||||
|
// CMA
|
||||||
|
put ("CMA/Beast/1", "https://api.scryfall.com/cards/tcma/7/en?format=image");
|
||||||
|
put ("CMA/Beast/2", "https://api.scryfall.com/cards/tcma/8/en?format=image");
|
||||||
|
put ("CMA/Dragon", "https://api.scryfall.com/cards/tcma/6/en?format=image");
|
||||||
|
put ("CMA/Drake", "https://api.scryfall.com/cards/tcma/18/en?format=image");
|
||||||
|
put ("CMA/Elemental", "https://api.scryfall.com/cards/tcma/9/en?format=image");
|
||||||
|
put ("CMA/Elephant", "https://api.scryfall.com/cards/tcma/10/en?format=image");
|
||||||
|
put ("CMA/Elf Druid", "https://api.scryfall.com/cards/tcma/11/en?format=image");
|
||||||
|
put ("CMA/Elf Warrior", "https://api.scryfall.com/cards/tcma/12/en?format=image");
|
||||||
|
put ("CMA/Gargoyle", "https://api.scryfall.com/cards/tcma/19/en?format=image");
|
||||||
|
put ("CMA/Phyrexian Germ", "https://api.scryfall.com/cards/tcma/4/en?format=image");
|
||||||
|
put ("CMA/Kithkin Soldier", "https://api.scryfall.com/cards/tcma/1/en?format=image");
|
||||||
|
put ("CMA/Knight", "https://api.scryfall.com/cards/tcma/2/en?format=image");
|
||||||
|
put ("CMA/Saproling", "https://api.scryfall.com/cards/tcma/13/en?format=image");
|
||||||
|
put ("CMA/Spider", "https://api.scryfall.com/cards/tcma/14/en?format=image");
|
||||||
|
put ("CMA/Spirit", "https://api.scryfall.com/cards/tcma/3/en?format=image");
|
||||||
|
put ("CMA/Treefolk", "https://api.scryfall.com/cards/tcma/15/en?format=image");
|
||||||
|
put ("CMA/Wolf/1", "https://api.scryfall.com/cards/tcma/16/en?format=image");
|
||||||
|
put ("CMA/Wolf/2", "https://api.scryfall.com/cards/tcma/17/en?format=image");
|
||||||
|
put ("CMA/Zombie", "https://api.scryfall.com/cards/tcma/5/en?format=image");
|
||||||
|
|
||||||
// generate supported sets
|
// generate supported sets
|
||||||
supportedSets.clear();
|
supportedSets.clear();
|
||||||
for (String cardName : this.keySet()) {
|
for (String cardName : this.keySet()) {
|
||||||
|
|
|
@ -448,14 +448,18 @@
|
||||||
|Generate|TOK:CMA|Drake|||LeafdrakeRoostDrakeToken|
|
|Generate|TOK:CMA|Drake|||LeafdrakeRoostDrakeToken|
|
||||||
|Generate|TOK:CMA|Elemental|||TitaniaProtectorOfArgothElementalToken|
|
|Generate|TOK:CMA|Elemental|||TitaniaProtectorOfArgothElementalToken|
|
||||||
|Generate|TOK:CMA|Elephant|||ElephantToken|
|
|Generate|TOK:CMA|Elephant|||ElephantToken|
|
||||||
|Generate|TOK:CMA|Elf Warrior||
|
|Generate|TOK:CMA|Elf Druid|||ElfDruidToken|
|
||||||
|
|Generate|TOK:CMA|Elf Warrior|||ElfWarriorToken|
|
||||||
|Generate|TOK:CMA|Gargoyle|||GargoyleToken|
|
|Generate|TOK:CMA|Gargoyle|||GargoyleToken|
|
||||||
|
|Generate|TOK:CMA|Phyrexian Germ|||PhyrexianGermToken|
|
||||||
|Generate|TOK:CMA|Kithkin Soldier|||KithkinSoldierToken|
|
|Generate|TOK:CMA|Kithkin Soldier|||KithkinSoldierToken|
|
||||||
|Generate|TOK:CMA|Knight|||KnightToken|
|
|Generate|TOK:CMA|Knight|||KnightToken|
|
||||||
|Generate|TOK:CMA|Saproling|||SaprolingToken|
|
|Generate|TOK:CMA|Saproling|||SaprolingToken|
|
||||||
|
|Generate|TOK:CMA|Spider|||SpiderToken|
|
||||||
|Generate|TOK:CMA|Spirit|||SpiritWhiteToken|
|
|Generate|TOK:CMA|Spirit|||SpiritWhiteToken|
|
||||||
|Generate|TOK:CMA|Treefolk|||SylvanOfferingTreefolkToken|
|
|Generate|TOK:CMA|Treefolk|||SylvanOfferingTreefolkToken|
|
||||||
|Generate|TOK:CMA|Wolf|||WolfToken|
|
|Generate|TOK:CMA|Wolf|1||WolfToken|
|
||||||
|
|Generate|TOK:CMA|Wolf|2||WolfToken|
|
||||||
|Generate|TOK:CMA|Zombie|||ZombieToken|
|
|Generate|TOK:CMA|Zombie|||ZombieToken|
|
||||||
|Generate|TOK:CMD|Beast|1||BeastToken2|
|
|Generate|TOK:CMD|Beast|1||BeastToken2|
|
||||||
|Generate|TOK:CMD|Beast|2||BeastToken|
|
|Generate|TOK:CMD|Beast|2||BeastToken|
|
||||||
|
|
|
@ -22,7 +22,7 @@ public final class AssemblyWorkerToken extends TokenImpl {
|
||||||
power = new MageInt(2);
|
power = new MageInt(2);
|
||||||
toughness = new MageInt(2);
|
toughness = new MageInt(2);
|
||||||
|
|
||||||
availableImageSetCodes = Arrays.asList("4ED", "ATQ", "DDF", "EMA", "TSR");
|
availableImageSetCodes = Arrays.asList("4ED", "ATQ", "DDF", "TSR");
|
||||||
}
|
}
|
||||||
|
|
||||||
public AssemblyWorkerToken(final AssemblyWorkerToken token) {
|
public AssemblyWorkerToken(final AssemblyWorkerToken token) {
|
||||||
|
|
|
@ -41,13 +41,15 @@ public final class BeastToken extends TokenImpl {
|
||||||
if (getOriginalExpansionSetCode() != null && getOriginalExpansionSetCode().equals("C19")) {
|
if (getOriginalExpansionSetCode() != null && getOriginalExpansionSetCode().equals("C19")) {
|
||||||
this.setTokenType(1);
|
this.setTokenType(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (getOriginalExpansionSetCode() != null && getOriginalExpansionSetCode().equals("DD3C")) {
|
if (getOriginalExpansionSetCode() != null && getOriginalExpansionSetCode().equals("DD3C")) {
|
||||||
setTokenType(RandomUtil.nextInt(2) + 1);
|
setTokenType(RandomUtil.nextInt(2) + 1);
|
||||||
}
|
}
|
||||||
if (getOriginalExpansionSetCode() != null && getOriginalExpansionSetCode().equals("MM3")) {
|
if (getOriginalExpansionSetCode() != null && getOriginalExpansionSetCode().equals("MM3")) {
|
||||||
setTokenType(RandomUtil.nextInt(2) + 1);
|
setTokenType(RandomUtil.nextInt(2) + 1);
|
||||||
}
|
}
|
||||||
|
if (getOriginalExpansionSetCode() != null && getOriginalExpansionSetCode().equals("CMA")) {
|
||||||
|
setTokenType(1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public BeastToken(final BeastToken token) {
|
public BeastToken(final BeastToken token) {
|
||||||
|
|
|
@ -36,7 +36,7 @@ public final class ElfDruidToken extends TokenImpl {
|
||||||
// {T}: Add {G}.
|
// {T}: Add {G}.
|
||||||
this.addAbility(new GreenManaAbility());
|
this.addAbility(new GreenManaAbility());
|
||||||
|
|
||||||
availableImageSetCodes = Arrays.asList("C14");
|
availableImageSetCodes = Arrays.asList("C14", "CMA");
|
||||||
}
|
}
|
||||||
|
|
||||||
public ElfDruidToken(final ElfDruidToken token) {
|
public ElfDruidToken(final ElfDruidToken token) {
|
||||||
|
|
|
@ -20,7 +20,7 @@ public final class ElfWarriorToken extends TokenImpl {
|
||||||
power = new MageInt(1);
|
power = new MageInt(1);
|
||||||
toughness = new MageInt(1);
|
toughness = new MageInt(1);
|
||||||
|
|
||||||
availableImageSetCodes = Arrays.asList("C14", "C16", "EVG", "EMA", "LRW", "MOR", "ORI", "SHM", "M19", "CMR", "KHM", "NCC", "DDU");
|
availableImageSetCodes = Arrays.asList("C14", "C16", "EVG", "EMA", "LRW", "MOR", "ORI", "SHM", "M19", "CMR", "KHM", "NCC", "DDU", "CMA");
|
||||||
}
|
}
|
||||||
|
|
||||||
public ElfWarriorToken(final ElfWarriorToken token) {
|
public ElfWarriorToken(final ElfWarriorToken token) {
|
||||||
|
|
|
@ -20,7 +20,7 @@ public final class KithkinSoldierToken extends TokenImpl {
|
||||||
power = new MageInt(1);
|
power = new MageInt(1);
|
||||||
toughness = new MageInt(1);
|
toughness = new MageInt(1);
|
||||||
|
|
||||||
availableImageSetCodes = Arrays.asList("CMD", "EVE", "LRW", "MMA", "MOR", "SHM", "MMA", "KHC");
|
availableImageSetCodes = Arrays.asList("CMD", "EVE", "LRW", "MMA", "MOR", "SHM", "MMA", "KHC", "CMA");
|
||||||
}
|
}
|
||||||
|
|
||||||
public KithkinSoldierToken(final KithkinSoldierToken token) {
|
public KithkinSoldierToken(final KithkinSoldierToken token) {
|
||||||
|
|
|
@ -20,7 +20,7 @@ public final class PhyrexianGermToken extends TokenImpl {
|
||||||
power = new MageInt(0);
|
power = new MageInt(0);
|
||||||
toughness = new MageInt(0);
|
toughness = new MageInt(0);
|
||||||
|
|
||||||
availableImageSetCodes = Arrays.asList("C14", "C15", "C16", "MBS", "MM2", "NPH", "PC2", "MH2", "NEC", "2XM", "CM2");
|
availableImageSetCodes = Arrays.asList("C14", "C15", "C16", "MBS", "MM2", "NPH", "PC2", "MH2", "NEC", "2XM", "CM2", "CMA");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -22,7 +22,7 @@ public final class SpiderToken extends TokenImpl {
|
||||||
|
|
||||||
this.addAbility(ReachAbility.getInstance());
|
this.addAbility(ReachAbility.getInstance());
|
||||||
|
|
||||||
availableImageSetCodes.addAll(Arrays.asList("C15", "EMN", "ISD", "SHM", "MH1", "THB", "MID", "UMA", "NCC"));
|
availableImageSetCodes.addAll(Arrays.asList("C15", "EMN", "ISD", "SHM", "MH1", "THB", "MID", "UMA", "NCC", "CMA"));
|
||||||
}
|
}
|
||||||
|
|
||||||
public SpiderToken(final SpiderToken token) {
|
public SpiderToken(final SpiderToken token) {
|
||||||
|
|
|
@ -33,6 +33,9 @@ public final class WolfToken extends TokenImpl {
|
||||||
if (getOriginalExpansionSetCode() != null && getOriginalExpansionSetCode().equals("ISD")) {
|
if (getOriginalExpansionSetCode() != null && getOriginalExpansionSetCode().equals("ISD")) {
|
||||||
this.setTokenType(RandomUtil.nextInt(2) + 1); // 2 images
|
this.setTokenType(RandomUtil.nextInt(2) + 1); // 2 images
|
||||||
}
|
}
|
||||||
|
if (getOriginalExpansionSetCode() != null && getOriginalExpansionSetCode().equals("CMA")) {
|
||||||
|
this.setTokenType(RandomUtil.nextInt(2) + 1); // 2 images
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public WolfToken(final WolfToken token) {
|
public WolfToken(final WolfToken token) {
|
||||||
|
|
Loading…
Reference in a new issue