mirror of
https://github.com/correl/mage.git
synced 2024-11-28 19:19:55 +00:00
Added AVR token images
This commit is contained in:
parent
21904d991c
commit
dce8c43d6f
7 changed files with 32 additions and 7 deletions
|
@ -1321,6 +1321,16 @@ public class ScryfallImageSupportTokens {
|
||||||
put ("DDI/Emblem Koth of the Hammer", "https://api.scryfall.com/cards/tddi/2/en?format=image");
|
put ("DDI/Emblem Koth of the Hammer", "https://api.scryfall.com/cards/tddi/2/en?format=image");
|
||||||
put ("DDI/Emblem Venser, the Sojourner", "https://api.scryfall.com/cards/tddi/1/en?format=image");
|
put ("DDI/Emblem Venser, the Sojourner", "https://api.scryfall.com/cards/tddi/1/en?format=image");
|
||||||
|
|
||||||
|
// AVR
|
||||||
|
put ("AVR/Angel", "https://api.scryfall.com/cards/tavr/1/en?format=image");
|
||||||
|
put ("AVR/Demon", "https://api.scryfall.com/cards/tavr/5/en?format=image");
|
||||||
|
put ("AVR/Human/1", "https://api.scryfall.com/cards/tavr/7/en?format=image");
|
||||||
|
put ("AVR/Human/2", "https://api.scryfall.com/cards/tavr/2/en?format=image");
|
||||||
|
put ("AVR/Spirit/1", "https://api.scryfall.com/cards/tavr/4/en?format=image");
|
||||||
|
put ("AVR/Spirit/2", "https://api.scryfall.com/cards/tavr/3/en?format=image");
|
||||||
|
put ("AVR/Emblem Tamiyo, the Moon Sage", "https://api.scryfall.com/cards/tavr/8/en?format=image");
|
||||||
|
put ("AVR/Zombie", "https://api.scryfall.com/cards/tavr/6/en?format=image");
|
||||||
|
|
||||||
// generate supported sets
|
// generate supported sets
|
||||||
supportedSets.clear();
|
supportedSets.clear();
|
||||||
for (String cardName : this.keySet()) {
|
for (String cardName : this.keySet()) {
|
||||||
|
|
|
@ -262,10 +262,10 @@
|
||||||
|Generate|TOK:ATQ|Tetravite|||TetraviteToken|
|
|Generate|TOK:ATQ|Tetravite|||TetraviteToken|
|
||||||
|Generate|TOK:AVR|Angel|||AngelToken|
|
|Generate|TOK:AVR|Angel|||AngelToken|
|
||||||
|Generate|TOK:AVR|Demon|||DemonToken|
|
|Generate|TOK:AVR|Demon|||DemonToken|
|
||||||
|Generate|TOK:AVR|Human|1||HumanToken|
|
|Generate|TOK:AVR|Human|1||RedHumanToken|
|
||||||
|Generate|TOK:AVR|Human|2||RedHumanToken|
|
|Generate|TOK:AVR|Human|2||HumanToken|
|
||||||
|Generate|TOK:AVR|Spirit|1||SpiritWhiteToken|
|
|Generate|TOK:AVR|Spirit|1||SpiritBlueToken|
|
||||||
|Generate|TOK:AVR|Spirit|2||Spirit|
|
|Generate|TOK:AVR|Spirit|2||SpiritWhiteToken|
|
||||||
|Generate|TOK:AVR|Zombie|||ZombieToken|
|
|Generate|TOK:AVR|Zombie|||ZombieToken|
|
||||||
|Generate|TOK:BFZ|Dragon|||DragonToken2|
|
|Generate|TOK:BFZ|Dragon|||DragonToken2|
|
||||||
|Generate|TOK:BFZ|Eldrazi Scion|1||EldraziScionToken|
|
|Generate|TOK:BFZ|Eldrazi Scion|1||EldraziScionToken|
|
||||||
|
|
|
@ -38,5 +38,8 @@ public final class HumanToken extends TokenImpl {
|
||||||
if (getOriginalExpansionSetCode().equals("VOW")) {
|
if (getOriginalExpansionSetCode().equals("VOW")) {
|
||||||
this.setTokenType(2);
|
this.setTokenType(2);
|
||||||
}
|
}
|
||||||
|
if (getOriginalExpansionSetCode().equals("AVR")) {
|
||||||
|
this.setTokenType(2);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,7 +31,7 @@ public final class RedHumanToken extends TokenImpl {
|
||||||
super.setExpansionSetCodeForImage(code);
|
super.setExpansionSetCodeForImage(code);
|
||||||
|
|
||||||
if (getOriginalExpansionSetCode().equals("AVR")) {
|
if (getOriginalExpansionSetCode().equals("AVR")) {
|
||||||
this.setTokenType(2);
|
this.setTokenType(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -6,6 +6,8 @@ import mage.constants.SubType;
|
||||||
import mage.MageInt;
|
import mage.MageInt;
|
||||||
import mage.abilities.keyword.FlyingAbility;
|
import mage.abilities.keyword.FlyingAbility;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author spjspj
|
* @author spjspj
|
||||||
|
@ -21,6 +23,16 @@ public final class SpiritBlueToken extends TokenImpl {
|
||||||
toughness = new MageInt(1);
|
toughness = new MageInt(1);
|
||||||
setTokenType(2);
|
setTokenType(2);
|
||||||
addAbility(FlyingAbility.getInstance());
|
addAbility(FlyingAbility.getInstance());
|
||||||
|
|
||||||
|
availableImageSetCodes = Arrays.asList("AVR");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void setExpansionSetCodeForImage(String code) {
|
||||||
|
super.setExpansionSetCodeForImage(code);
|
||||||
|
if (getOriginalExpansionSetCode() != null && getOriginalExpansionSetCode().equals("AVR")) {
|
||||||
|
setTokenType(1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public SpiritBlueToken(final SpiritBlueToken token) {
|
public SpiritBlueToken(final SpiritBlueToken token) {
|
||||||
|
|
|
@ -31,7 +31,7 @@ public final class SpiritWhiteToken extends TokenImpl {
|
||||||
public void setExpansionSetCodeForImage(String code) {
|
public void setExpansionSetCodeForImage(String code) {
|
||||||
super.setExpansionSetCodeForImage(code);
|
super.setExpansionSetCodeForImage(code);
|
||||||
if (getOriginalExpansionSetCode() != null && getOriginalExpansionSetCode().equals("AVR")) {
|
if (getOriginalExpansionSetCode() != null && getOriginalExpansionSetCode().equals("AVR")) {
|
||||||
setTokenType(1);
|
setTokenType(2);
|
||||||
}
|
}
|
||||||
if (getOriginalExpansionSetCode() != null && getOriginalExpansionSetCode().equals("C16")) {
|
if (getOriginalExpansionSetCode() != null && getOriginalExpansionSetCode().equals("C16")) {
|
||||||
setTokenType(2);
|
setTokenType(2);
|
||||||
|
|
|
@ -31,7 +31,7 @@ public final class ZombieToken extends TokenImpl {
|
||||||
"M20", "C19", "C20", "THB",
|
"M20", "C19", "C20", "THB",
|
||||||
"M21", "CMR", "C21", "MH2",
|
"M21", "CMR", "C21", "MH2",
|
||||||
"AFR", "MIC", "VOW", "UMA",
|
"AFR", "MIC", "VOW", "UMA",
|
||||||
"NCC", "MED", "BBD", "M19", "CM2", "PCA");
|
"NCC", "MED", "BBD", "M19", "CM2", "PCA", "AVR");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue