Add DMR token images

This commit is contained in:
PurpleCrowbar 2023-01-26 03:55:05 +00:00
parent 04e6b16899
commit 112f7af0fb
16 changed files with 54 additions and 13 deletions

View file

@ -1845,6 +1845,22 @@ public class ScryfallImageSupportTokens {
put ("BRC/Servo", "https://api.scryfall.com/cards/tbrc/13/en?format=image"); put ("BRC/Servo", "https://api.scryfall.com/cards/tbrc/13/en?format=image");
put ("BRC/Thopter", "https://api.scryfall.com/cards/tbrc/6/en?format=image"); put ("BRC/Thopter", "https://api.scryfall.com/cards/tbrc/6/en?format=image");
// DMR
put ("DMR/Bird", "https://api.scryfall.com/cards/tdmr/1/en?format=image");
put ("DMR/Cat/1", "https://api.scryfall.com/cards/tdmr/3/en?format=image");
put ("DMR/Cat/2", "https://api.scryfall.com/cards/tdmr/8/en?format=image");
put ("DMR/Construct", "https://api.scryfall.com/cards/tdmr/14/en?format=image");
put ("DMR/Elemental", "https://api.scryfall.com/cards/tdmr/6/en?format=image");
put ("DMR/ELephant", "https://api.scryfall.com/cards/tdmr/9/en?format=image");
put ("DMR/Goblin", "https://api.scryfall.com/cards/tdmr/7/en?format=image");
put ("DMR/Griffin", "https://api.scryfall.com/cards/tdmr/2/en?format=image");
put ("DMR/Insect", "https://api.scryfall.com/cards/tdmr/10/en?format=image");
put ("DMR/Marit Lage", "https://api.scryfall.com/cards/tdmr/4/en?format=image");
put ("DMR/Saproling", "https://api.scryfall.com/cards/tdmr/11/en?format=image");
put ("DMR/Sheep", "https://api.scryfall.com/cards/tdmr/12/en?format=image");
put ("DMR/Squirrel", "https://api.scryfall.com/cards/tdmr/13/en?format=image");
put ("DMR/Zombie", "https://api.scryfall.com/cards/tdmr/5/en?format=image");
// generate supported sets // generate supported sets
supportedSets.clear(); supportedSets.clear();
for (String cardName : this.keySet()) { for (String cardName : this.keySet()) {

View file

@ -1966,3 +1966,19 @@
|Generate|TOK:BRC|Scrap|||ScrapToken| |Generate|TOK:BRC|Scrap|||ScrapToken|
|Generate|TOK:BRC|Servo|||ServoToken| |Generate|TOK:BRC|Servo|||ServoToken|
|Generate|TOK:BRC|Thopter|||ThopterToken| |Generate|TOK:BRC|Thopter|||ThopterToken|
# DMR
|Generate|TOK:DMR|Bird|||BirdToken|
|Generate|TOK:DMR|Cat|1||PenumbraBobcatToken|
|Generate|TOK:DMR|Cat|2||GreenCat2Token|
|Generate|TOK:DMR|Construct|||KarnConstructToken|
|Generate|TOK:DMR|Elemental|||Elemental31TrampleHasteToken|
|Generate|TOK:DMR|Elephant|||ElephantToken|
|Generate|TOK:DMR|Goblin|||GoblinToken|
|Generate|TOK:DMR|Griffin|||GriffinToken|
|Generate|TOK:DMR|Insect|||InsectToken|
|Generate|TOK:DMR|Marit Lage|||MaritLageToken|
|Generate|TOK:DMR|Saproling|||SaprolingToken|
|Generate|TOK:DMR|Sheep|||SheepToken|
|Generate|TOK:DMR|Squirrel|||SquirrelToken|
|Generate|TOK:DMR|Zombie|||ZombieToken|

View file

@ -4,7 +4,6 @@ import mage.MageInt;
import mage.abilities.keyword.FlyingAbility; import mage.abilities.keyword.FlyingAbility;
import mage.constants.CardType; import mage.constants.CardType;
import mage.constants.SubType; import mage.constants.SubType;
import mage.util.RandomUtil;
import java.util.Arrays; import java.util.Arrays;
@ -24,7 +23,7 @@ public final class BirdToken extends TokenImpl {
addAbility(FlyingAbility.getInstance()); addAbility(FlyingAbility.getInstance());
availableImageSetCodes = Arrays.asList("BNG", "CSP", "JUD", "MM3", "RTR", "VMA", "ZEN", availableImageSetCodes = Arrays.asList("BNG", "CSP", "JUD", "MM3", "RTR", "VMA", "ZEN",
"MH1", "C16", "C20", "M21", "ZNC", "KHC", "MH2", "IMA", "CM2", "DMU"); "MH1", "C16", "C20", "M21", "ZNC", "KHC", "MH2", "IMA", "CM2", "DMU", "DMR");
} }
public BirdToken(final BirdToken token) { public BirdToken(final BirdToken token) {

View file

@ -22,7 +22,7 @@ public final class Elemental31TrampleHasteToken extends TokenImpl {
toughness = new MageInt(1); toughness = new MageInt(1);
this.addAbility(TrampleAbility.getInstance()); this.addAbility(TrampleAbility.getInstance());
this.addAbility(HasteAbility.getInstance()); this.addAbility(HasteAbility.getInstance());
availableImageSetCodes.addAll(Arrays.asList("BFZ", "MH1", "DOM")); availableImageSetCodes.addAll(Arrays.asList("BFZ", "MH1", "DOM", "DMR"));
} }
@Override @Override

View file

@ -20,7 +20,7 @@ public final class ElephantToken extends TokenImpl {
toughness = new MageInt(3); toughness = new MageInt(3);
availableImageSetCodes = Arrays.asList("C14", "C15", "CMA", "CNS", "GVL", "DDD", availableImageSetCodes = Arrays.asList("C14", "C15", "CMA", "CNS", "GVL", "DDD",
"EMA", "INV", "JUD", "MM2", "ODY", "VMA", "WWK", "MH1", "CMR", "C21", "MIC", "NEC", "2XM", "NCC", "MM3", "DDS", "DMC"); "EMA", "INV", "JUD", "MM2", "ODY", "VMA", "WWK", "MH1", "CMR", "C21", "MIC", "NEC", "2XM", "NCC", "MM3", "DDS", "DMC", "DMR");
} }
public ElephantToken(final ElephantToken token) { public ElephantToken(final ElephantToken token) {

View file

@ -34,7 +34,7 @@ public final class GoblinToken extends TokenImpl {
"MMA", "M15", "C14", "KTK", "EVG", "DTK", "ORI", "DDG", "DDN", "MMA", "M15", "C14", "KTK", "EVG", "DTK", "ORI", "DDG", "DDN",
"MM3", "EMA", "DOM", "RNA", "WAR", "MH1", "TSR", "MH2", "AFR", "MM3", "EMA", "DOM", "RNA", "WAR", "MH1", "TSR", "MH2", "AFR",
"NEC", "M19", "CM2", "PCA", "DD1", "DDS", "DDT", "A25", "GRN", "NEC", "M19", "CM2", "PCA", "DD1", "DDS", "DDT", "A25", "GRN",
"GK1", "DMU"); "GK1", "DMU", "DMR");
} }
public GoblinToken(final GoblinToken token) { public GoblinToken(final GoblinToken token) {

View file

@ -19,7 +19,7 @@ public final class GreenCat2Token extends TokenImpl {
power = new MageInt(2); power = new MageInt(2);
toughness = new MageInt(2); toughness = new MageInt(2);
availableImageSetCodes = Arrays.asList("M21", "KHM"); availableImageSetCodes = Arrays.asList("M21", "KHM", "DMR");
} }
private GreenCat2Token(final GreenCat2Token token) { private GreenCat2Token(final GreenCat2Token token) {
@ -37,5 +37,8 @@ public final class GreenCat2Token extends TokenImpl {
if (getOriginalExpansionSetCode() != null && getOriginalExpansionSetCode().equals("M21")) { if (getOriginalExpansionSetCode() != null && getOriginalExpansionSetCode().equals("M21")) {
this.setTokenType(2); this.setTokenType(2);
} }
if (getOriginalExpansionSetCode() != null && getOriginalExpansionSetCode().equals("DMR")) {
this.setTokenType(2);
}
} }
} }

View file

@ -23,7 +23,7 @@ public final class GriffinToken extends TokenImpl {
// Flying // Flying
this.addAbility(FlyingAbility.getInstance()); this.addAbility(FlyingAbility.getInstance());
availableImageSetCodes = Arrays.asList("DDH", "DDL", "M21", "TSR", "DMC"); availableImageSetCodes = Arrays.asList("DDH", "DDL", "M21", "TSR", "DMC", "DMR");
} }
public GriffinToken(final GriffinToken token) { public GriffinToken(final GriffinToken token) {

View file

@ -24,7 +24,7 @@ public final class InsectToken extends TokenImpl {
power = new MageInt(1); power = new MageInt(1);
toughness = new MageInt(1); toughness = new MageInt(1);
availableImageSetCodes = Arrays.asList("M10", "MM2", "SOI", "ZNR", "VOW", "NCC", "PCA", "CN2", "A25"); availableImageSetCodes = Arrays.asList("M10", "MM2", "SOI", "ZNR", "VOW", "NCC", "PCA", "CN2", "A25", "DMR");
} }
public InsectToken(final InsectToken token) { public InsectToken(final InsectToken token) {

View file

@ -29,7 +29,7 @@ public final class KarnConstructToken extends TokenImpl {
.setText("This creature gets +1/+1 for each artifact you control") .setText("This creature gets +1/+1 for each artifact you control")
)); ));
availableImageSetCodes = Arrays.asList("DOM", "MH1", "C21", "MH2", "MED", "BRO"); availableImageSetCodes = Arrays.asList("DOM", "MH1", "C21", "MH2", "MED", "BRO", "DMR");
} }
public KarnConstructToken(final KarnConstructToken token) { public KarnConstructToken(final KarnConstructToken token) {

View file

@ -27,7 +27,7 @@ public final class MaritLageToken extends TokenImpl {
this.addAbility(FlyingAbility.getInstance()); this.addAbility(FlyingAbility.getInstance());
this.addAbility(IndestructibleAbility.getInstance()); this.addAbility(IndestructibleAbility.getInstance());
availableImageSetCodes.addAll(Arrays.asList("CSP", "MH1", "UMA", "2XM", "V16")); availableImageSetCodes.addAll(Arrays.asList("CSP", "MH1", "UMA", "2XM", "V16", "DMR"));
} }
public MaritLageToken(final MaritLageToken token) { public MaritLageToken(final MaritLageToken token) {

View file

@ -18,6 +18,9 @@ public final class PenumbraBobcatToken extends TokenImpl {
subtype.add(SubType.CAT); subtype.add(SubType.CAT);
power = new MageInt(2); power = new MageInt(2);
toughness = new MageInt(1); toughness = new MageInt(1);
setOriginalExpansionSetCode("DMR");
setTokenType(1);
} }
public PenumbraBobcatToken(final PenumbraBobcatToken token) { public PenumbraBobcatToken(final PenumbraBobcatToken token) {

View file

@ -56,7 +56,8 @@ public final class SaprolingToken extends TokenImpl {
"GK2", "GK2",
"CLB", "CLB",
"2X2", "2X2",
"DMU" "DMU",
"DMR"
)); ));
} }

View file

@ -18,6 +18,8 @@ public final class SheepToken extends TokenImpl {
subtype.add(SubType.SHEEP); subtype.add(SubType.SHEEP);
power = new MageInt(0); power = new MageInt(0);
toughness = new MageInt(1); toughness = new MageInt(1);
setOriginalExpansionSetCode("DMR");
} }
public SheepToken(final SheepToken token) { public SheepToken(final SheepToken token) {

View file

@ -20,7 +20,7 @@ public final class SquirrelToken extends TokenImpl {
toughness = new MageInt(1); toughness = new MageInt(1);
availableImageSetCodes = Arrays.asList("CNS", "ODY", "PCY", "TOR", "ULG", "UNH", "WMA", availableImageSetCodes = Arrays.asList("CNS", "ODY", "PCY", "TOR", "ULG", "UNH", "WMA",
"WTH", "MH1", "MH2", "2XM", "CLB"); "WTH", "MH1", "MH2", "2XM", "CLB", "DMR");
} }
public SquirrelToken(final SquirrelToken token) { public SquirrelToken(final SquirrelToken token) {

View file

@ -33,7 +33,8 @@ public final class ZombieToken extends TokenImpl {
"MIC", "VOW", "UMA", "NCC", "MIC", "VOW", "UMA", "NCC",
"MED", "BBD", "M19", "CM2", "MED", "BBD", "M19", "CM2",
"PCA", "AVR", "DDQ", "CN2", "PCA", "AVR", "DDQ", "CN2",
"2X2", "CC2", "DMC", "GN3"); "2X2", "CC2", "DMC", "GN3",
"DMR");
} }
@Override @Override