mirror of
https://github.com/magefree/mage.git
synced 2025-12-26 21:42:07 -08:00
[ZNR] Added tokens support and download
This commit is contained in:
parent
778729f20a
commit
6bc040ef6c
17 changed files with 90 additions and 56 deletions
|
|
@ -5,14 +5,10 @@ import mage.abilities.keyword.FlyingAbility;
|
|||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
public final class AngelToken extends TokenImpl {
|
||||
|
||||
static final private List<String> tokenImageSets = new ArrayList<>();
|
||||
|
||||
public AngelToken() {
|
||||
super("Angel", "4/4 white Angel creature token with flying");
|
||||
cardType.add(CardType.CREATURE);
|
||||
|
|
|
|||
|
|
@ -5,6 +5,8 @@ import mage.abilities.keyword.FlyingAbility;
|
|||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
public final class AngelWarriorToken extends TokenImpl {
|
||||
|
||||
public AngelWarriorToken() {
|
||||
|
|
@ -15,7 +17,10 @@ public final class AngelWarriorToken extends TokenImpl {
|
|||
subtype.add(SubType.WARRIOR);
|
||||
power = new MageInt(4);
|
||||
toughness = new MageInt(4);
|
||||
|
||||
addAbility(FlyingAbility.getInstance());
|
||||
|
||||
availableImageSetCodes = Arrays.asList("ZNR");
|
||||
}
|
||||
|
||||
public AngelWarriorToken(final AngelWarriorToken token) {
|
||||
|
|
|
|||
|
|
@ -4,6 +4,8 @@ import mage.MageInt;
|
|||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
|
|
@ -17,6 +19,8 @@ public final class CatBeastToken extends TokenImpl {
|
|||
subtype.add(SubType.BEAST);
|
||||
power = new MageInt(2);
|
||||
toughness = new MageInt(2);
|
||||
|
||||
availableImageSetCodes = Arrays.asList("ZNR");
|
||||
}
|
||||
|
||||
public CatBeastToken(final CatBeastToken token) {
|
||||
|
|
|
|||
|
|
@ -4,6 +4,8 @@ import mage.MageInt;
|
|||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
|
|
@ -16,6 +18,8 @@ public final class CatToken3 extends TokenImpl {
|
|||
subtype.add(SubType.CAT);
|
||||
power = new MageInt(1);
|
||||
toughness = new MageInt(1);
|
||||
|
||||
availableImageSetCodes = Arrays.asList("ZNR");
|
||||
}
|
||||
|
||||
private CatToken3(final CatToken3 token) {
|
||||
|
|
|
|||
|
|
@ -4,6 +4,8 @@ import mage.MageInt;
|
|||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
/**
|
||||
* @author spjspj
|
||||
*/
|
||||
|
|
@ -16,6 +18,8 @@ public final class ConstructToken extends TokenImpl {
|
|||
subtype.add(SubType.CONSTRUCT);
|
||||
power = new MageInt(1);
|
||||
toughness = new MageInt(1);
|
||||
|
||||
availableImageSetCodes = Arrays.asList("ZNR");
|
||||
}
|
||||
|
||||
public ConstructToken(final ConstructToken token) {
|
||||
|
|
|
|||
|
|
@ -4,25 +4,29 @@ import mage.MageInt;
|
|||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class InscriptionOfInsightToken extends TokenImpl {
|
||||
public final class CustomIllusionToken extends TokenImpl {
|
||||
|
||||
public InscriptionOfInsightToken(int xValue) {
|
||||
public CustomIllusionToken(int xValue) {
|
||||
super("Illusion", "X/X blue Illusion creature token");
|
||||
cardType.add(CardType.CREATURE);
|
||||
color.setBlue(true);
|
||||
subtype.add(SubType.ILLUSION);
|
||||
power = new MageInt(xValue);
|
||||
toughness = new MageInt(xValue);
|
||||
|
||||
availableImageSetCodes = Arrays.asList("ZNR");
|
||||
}
|
||||
|
||||
public InscriptionOfInsightToken(final InscriptionOfInsightToken token) {
|
||||
public CustomIllusionToken(final CustomIllusionToken token) {
|
||||
super(token);
|
||||
}
|
||||
|
||||
public InscriptionOfInsightToken copy() {
|
||||
return new InscriptionOfInsightToken(this);
|
||||
public CustomIllusionToken copy() {
|
||||
return new CustomIllusionToken(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,14 +1,14 @@
|
|||
|
||||
package mage.game.permanent.token;
|
||||
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.MageInt;
|
||||
import mage.ObjectColor;
|
||||
import mage.abilities.keyword.FlyingAbility;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author North
|
||||
*/
|
||||
public final class DrakeToken extends TokenImpl {
|
||||
|
|
@ -23,6 +23,8 @@ public final class DrakeToken extends TokenImpl {
|
|||
this.toughness = new MageInt(2);
|
||||
|
||||
this.addAbility(FlyingAbility.getInstance());
|
||||
|
||||
availableImageSetCodes = Arrays.asList("AKH", "C15", "C19", "M13", "C20", "ZNR");
|
||||
}
|
||||
|
||||
public DrakeToken(final DrakeToken token) {
|
||||
|
|
|
|||
|
|
@ -4,12 +4,14 @@ import mage.MageInt;
|
|||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class GrakmawSkyclaveRavagerToken extends TokenImpl {
|
||||
public final class GrakmawSkyclaveRavagerHydraToken extends TokenImpl {
|
||||
|
||||
public GrakmawSkyclaveRavagerToken(int xValue) {
|
||||
public GrakmawSkyclaveRavagerHydraToken(int xValue) {
|
||||
super("Hydra", "X/X black and green Hydra creature token");
|
||||
cardType.add(CardType.CREATURE);
|
||||
color.setBlack(true);
|
||||
|
|
@ -17,13 +19,15 @@ public final class GrakmawSkyclaveRavagerToken extends TokenImpl {
|
|||
subtype.add(SubType.HYDRA);
|
||||
power = new MageInt(xValue);
|
||||
toughness = new MageInt(xValue);
|
||||
|
||||
availableImageSetCodes = Arrays.asList("ZNR");
|
||||
}
|
||||
|
||||
private GrakmawSkyclaveRavagerToken(final GrakmawSkyclaveRavagerToken token) {
|
||||
private GrakmawSkyclaveRavagerHydraToken(final GrakmawSkyclaveRavagerHydraToken token) {
|
||||
super(token);
|
||||
}
|
||||
|
||||
public GrakmawSkyclaveRavagerToken copy() {
|
||||
return new GrakmawSkyclaveRavagerToken(this);
|
||||
public GrakmawSkyclaveRavagerHydraToken copy() {
|
||||
return new GrakmawSkyclaveRavagerHydraToken(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,28 +1,18 @@
|
|||
|
||||
|
||||
package mage.game.permanent.token;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import mage.MageInt;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author BetaSteward_at_googlemail.com
|
||||
*/
|
||||
public final class InsectToken extends TokenImpl {
|
||||
|
||||
static final private List<String> tokenImageSets = new ArrayList<>();
|
||||
|
||||
static {
|
||||
tokenImageSets.addAll(Arrays.asList("M10", "MM2", "SOI"));
|
||||
}
|
||||
|
||||
public InsectToken() {
|
||||
this((String)null);
|
||||
this((String) null);
|
||||
}
|
||||
|
||||
public InsectToken(String setCode) {
|
||||
|
|
@ -34,7 +24,7 @@ public final class InsectToken extends TokenImpl {
|
|||
power = new MageInt(1);
|
||||
toughness = new MageInt(1);
|
||||
|
||||
availableImageSetCodes = tokenImageSets;
|
||||
availableImageSetCodes = Arrays.asList("M10", "MM2", "SOI", "ZNR");
|
||||
}
|
||||
|
||||
public InsectToken(final InsectToken token) {
|
||||
|
|
|
|||
|
|
@ -4,8 +4,9 @@ import mage.MageInt;
|
|||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class KorWarriorToken extends TokenImpl {
|
||||
|
|
@ -18,6 +19,8 @@ public final class KorWarriorToken extends TokenImpl {
|
|||
color.setWhite(true);
|
||||
power = new MageInt(1);
|
||||
toughness = new MageInt(1);
|
||||
|
||||
availableImageSetCodes = Arrays.asList("ZNR");
|
||||
}
|
||||
|
||||
public KorWarriorToken(final KorWarriorToken token) {
|
||||
|
|
|
|||
|
|
@ -1,20 +1,13 @@
|
|||
package mage.game.permanent.token;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import mage.MageInt;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
public final class PlantToken extends TokenImpl {
|
||||
|
||||
static final private List<String> tokenImageSets = new ArrayList<>();
|
||||
|
||||
static {
|
||||
tokenImageSets.addAll(Arrays.asList("WWK", "DDP", "OGW"));
|
||||
}
|
||||
|
||||
public PlantToken() {
|
||||
super("Plant", "0/1 green Plant creature token");
|
||||
cardType.add(CardType.CREATURE);
|
||||
|
|
@ -23,7 +16,7 @@ public final class PlantToken extends TokenImpl {
|
|||
power = new MageInt(0);
|
||||
toughness = new MageInt(1);
|
||||
|
||||
availableImageSetCodes = tokenImageSets;
|
||||
availableImageSetCodes = Arrays.asList("WWK", "DDP", "OGW", "ZNR");
|
||||
}
|
||||
|
||||
public PlantToken(final PlantToken token) {
|
||||
|
|
|
|||
|
|
@ -10,13 +10,10 @@ import mage.constants.Duration;
|
|||
import mage.constants.SubType;
|
||||
import mage.constants.TargetController;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Arrays;
|
||||
|
||||
public final class RelicRobberToken extends TokenImpl {
|
||||
|
||||
static final private List<String> tokenImageSets = new ArrayList<>();
|
||||
|
||||
public RelicRobberToken() {
|
||||
super("Goblin Construct", "0/1 colorless Goblin Construct artifact creature token with \"This creature can't block\" and \"At the beginning of your upkeep, this creature deals 1 damage to you.\"");
|
||||
cardType.add(CardType.ARTIFACT);
|
||||
|
|
@ -25,12 +22,15 @@ public final class RelicRobberToken extends TokenImpl {
|
|||
subtype.add(SubType.CONSTRUCT);
|
||||
power = new MageInt(0);
|
||||
toughness = new MageInt(1);
|
||||
|
||||
this.addAbility(new SimpleStaticAbility(
|
||||
new CantBlockSourceEffect(Duration.WhileOnBattlefield).setText("this creature can't block")
|
||||
));
|
||||
this.addAbility(new BeginningOfUpkeepTriggeredAbility(new DamageControllerEffect(
|
||||
1, "this creature"
|
||||
), TargetController.YOU, false));
|
||||
|
||||
availableImageSetCodes = Arrays.asList("ZNR");
|
||||
}
|
||||
|
||||
public RelicRobberToken(final RelicRobberToken token) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue