mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 13:02:06 -08:00
[KHC] added tokens and download support;
This commit is contained in:
parent
f7bc745f10
commit
03952ae0d6
19 changed files with 121 additions and 113 deletions
|
|
@ -20,9 +20,10 @@ public final class BirdToken extends TokenImpl {
|
|||
subtype.add(SubType.BIRD);
|
||||
power = new MageInt(1);
|
||||
toughness = new MageInt(1);
|
||||
|
||||
addAbility(FlyingAbility.getInstance());
|
||||
|
||||
availableImageSetCodes.addAll(Arrays.asList("BNG", "CSP", "DGM", "JUD", "MM3", "RTR", "VMA", "ZEN", "MH1", "C20", "M21", "ZNC"));
|
||||
availableImageSetCodes.addAll(Arrays.asList("BNG", "CSP", "DGM", "JUD", "MM3", "RTR", "VMA", "ZEN", "MH1", "C20", "M21", "ZNC", "KHC"));
|
||||
}
|
||||
|
||||
public BirdToken(final BirdToken token) {
|
||||
|
|
|
|||
|
|
@ -1,32 +1,33 @@
|
|||
|
||||
|
||||
package mage.game.permanent.token;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.MageInt;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author spjspj
|
||||
*/
|
||||
public final class CurseOfTheSwineBoarToken extends TokenImpl {
|
||||
public final class Boar2Token extends TokenImpl {
|
||||
|
||||
public CurseOfTheSwineBoarToken() {
|
||||
public Boar2Token() {
|
||||
super("Boar", "2/2 green Boar creature token");
|
||||
cardType.add(CardType.CREATURE);
|
||||
color.setGreen(true);
|
||||
subtype.add(SubType.BOAR);
|
||||
power = new MageInt(2);
|
||||
toughness = new MageInt(2);
|
||||
|
||||
availableImageSetCodes = Arrays.asList("THS", "KHC");
|
||||
}
|
||||
|
||||
public CurseOfTheSwineBoarToken(final CurseOfTheSwineBoarToken token) {
|
||||
public Boar2Token(final Boar2Token token) {
|
||||
super(token);
|
||||
}
|
||||
|
||||
public CurseOfTheSwineBoarToken copy() {
|
||||
return new CurseOfTheSwineBoarToken(this);
|
||||
public Boar2Token copy() {
|
||||
return new Boar2Token(this);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1,17 +1,17 @@
|
|||
package mage.game.permanent.token;
|
||||
|
||||
import java.util.Arrays;
|
||||
import mage.MageInt;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Loki
|
||||
*/
|
||||
public final class KithkinToken extends TokenImpl {
|
||||
public final class KithkinSoldierToken extends TokenImpl {
|
||||
|
||||
public KithkinToken() {
|
||||
public KithkinSoldierToken() {
|
||||
super("Kithkin Soldier", "1/1 white Kithkin Soldier creature token");
|
||||
cardType.add(CardType.CREATURE);
|
||||
color.setWhite(true);
|
||||
|
|
@ -19,14 +19,15 @@ public final class KithkinToken extends TokenImpl {
|
|||
subtype.add(SubType.SOLDIER);
|
||||
power = new MageInt(1);
|
||||
toughness = new MageInt(1);
|
||||
availableImageSetCodes.addAll(Arrays.asList("LRW", "SHM", "MMA"));
|
||||
|
||||
availableImageSetCodes = Arrays.asList("CMD", "EVE", "FUT", "LRW", "MMA", "MOR", "SHM", "MMA", "KHC");
|
||||
}
|
||||
|
||||
public KithkinToken(final KithkinToken token) {
|
||||
public KithkinSoldierToken(final KithkinSoldierToken token) {
|
||||
super(token);
|
||||
}
|
||||
|
||||
public KithkinToken copy() {
|
||||
return new KithkinToken(this);
|
||||
public KithkinSoldierToken copy() {
|
||||
return new KithkinSoldierToken(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,14 +1,13 @@
|
|||
|
||||
|
||||
package mage.game.permanent.token;
|
||||
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.keyword.FlyingAbility;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author LoneFox
|
||||
*/
|
||||
public final class PegasusToken extends TokenImpl {
|
||||
|
|
@ -20,8 +19,10 @@ public final class PegasusToken extends TokenImpl {
|
|||
subtype.add(SubType.PEGASUS);
|
||||
power = new MageInt(1);
|
||||
toughness = new MageInt(1);
|
||||
|
||||
addAbility(FlyingAbility.getInstance());
|
||||
setOriginalExpansionSetCode("C14");
|
||||
|
||||
availableImageSetCodes = Arrays.asList("C14", "C19", "CMD", "EXO", "GPT", "MIR", "TMP", "TPR", "TSP", "THB", "KHC");
|
||||
}
|
||||
|
||||
public PegasusToken(final PegasusToken token) {
|
||||
|
|
|
|||
|
|
@ -1,40 +1,32 @@
|
|||
|
||||
package mage.game.permanent.token;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import mage.MageInt;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.util.RandomUtil;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author fireshoes
|
||||
*/
|
||||
public final class ServoToken extends TokenImpl {
|
||||
|
||||
static final private List<String> tokenImageSets = new ArrayList<>();
|
||||
|
||||
static {
|
||||
tokenImageSets.addAll(Collections.singletonList("KLD"));
|
||||
tokenImageSets.addAll(Collections.singletonList("WAR"));
|
||||
}
|
||||
|
||||
public ServoToken() {
|
||||
super("Servo", "1/1 colorless Servo artifact creature token");
|
||||
availableImageSetCodes = tokenImageSets;
|
||||
cardType.add(CardType.ARTIFACT);
|
||||
cardType.add(CardType.CREATURE);
|
||||
subtype.add(SubType.SERVO);
|
||||
power = new MageInt(1);
|
||||
toughness = new MageInt(1);
|
||||
|
||||
availableImageSetCodes = Arrays.asList("C18", "KLD", "WAR", "KHC");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setExpansionSetCodeForImage(String code) {
|
||||
super.setExpansionSetCodeForImage(code);
|
||||
|
||||
if (getOriginalExpansionSetCode() != null && getOriginalExpansionSetCode().equals("KLD")) {
|
||||
this.setTokenType(RandomUtil.nextInt(3) + 1);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ public final class SoldierToken extends TokenImpl {
|
|||
toughness = new MageInt(1);
|
||||
|
||||
availableImageSetCodes = Arrays.asList("10E", "M15", "C14", "ORI", "ALA", "DDF", "THS", "M12", "M13", "MM2", "MMA", "RTR",
|
||||
"SOM", "DDO", "M10", "ORI", "EMN", "EMA", "CN2", "C16", "MM3", "E01", "DOM", "MH1", "M20", "C20", "M21", "CMR");
|
||||
"SOM", "DDO", "M10", "ORI", "EMN", "EMA", "CN2", "C16", "MM3", "E01", "DOM", "MH1", "M20", "C20", "M21", "CMR", "KHC");
|
||||
}
|
||||
|
||||
public SoldierToken(final SoldierToken token) {
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ public final class ThopterColorlessToken extends TokenImpl {
|
|||
|
||||
addAbility(FlyingAbility.getInstance());
|
||||
|
||||
availableImageSetCodes = Arrays.asList("C18", "EXO", "KLD", "MBS", "ORI", "TPR", "VMA", "M19", "ZNC");
|
||||
availableImageSetCodes = Arrays.asList("C18", "EXO", "KLD", "MBS", "ORI", "TPR", "VMA", "M19", "ZNC", "KHC");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -1,20 +1,19 @@
|
|||
|
||||
|
||||
package mage.game.permanent.token;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.keyword.TrampleAbility;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author spjspj
|
||||
*/
|
||||
public final class VoiceOfTheWoodsElementalToken extends TokenImpl {
|
||||
|
||||
public VoiceOfTheWoodsElementalToken() {
|
||||
super("Elemental", "7/7 green Elemental creature token with trample");
|
||||
this.setOriginalExpansionSetCode("EVG");
|
||||
cardType.add(CardType.CREATURE);
|
||||
subtype.add(SubType.ELEMENTAL);
|
||||
|
||||
|
|
@ -23,6 +22,8 @@ public final class VoiceOfTheWoodsElementalToken extends TokenImpl {
|
|||
toughness = new MageInt(7);
|
||||
|
||||
addAbility(TrampleAbility.getInstance());
|
||||
|
||||
availableImageSetCodes.addAll(Arrays.asList("EVG", "KHC"));
|
||||
}
|
||||
|
||||
public VoiceOfTheWoodsElementalToken(final VoiceOfTheWoodsElementalToken token) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue