forked from External/mage
[VOC] added tokens and images support
This commit is contained in:
parent
1fcdbe4b63
commit
424fc919a7
10 changed files with 47 additions and 32 deletions
|
|
@ -4,40 +4,21 @@ import mage.MageInt;
|
|||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author Loki
|
||||
*/
|
||||
public final class SpiritToken extends TokenImpl {
|
||||
|
||||
static final private List<String> tokenImageSets = new ArrayList<>();
|
||||
|
||||
static {
|
||||
tokenImageSets.addAll(Arrays.asList("CHK", "EMA", "C16", "C19"));
|
||||
}
|
||||
|
||||
public SpiritToken() {
|
||||
this(null, 0);
|
||||
}
|
||||
|
||||
public SpiritToken(String setCode) {
|
||||
this(setCode, 0);
|
||||
}
|
||||
|
||||
public SpiritToken(String setCode, int tokenType) {
|
||||
super("Spirit", "1/1 colorless Spirit creature token");
|
||||
availableImageSetCodes = tokenImageSets;
|
||||
setOriginalExpansionSetCode(setCode);
|
||||
if (tokenType > 0) {
|
||||
setTokenType(tokenType);
|
||||
}
|
||||
cardType.add(CardType.CREATURE);
|
||||
subtype.add(SubType.SPIRIT);
|
||||
power = new MageInt(1);
|
||||
toughness = new MageInt(1);
|
||||
|
||||
availableImageSetCodes = Arrays.asList("C19", "CHK", "EMA", "EXP", "SOK", "V12", "VOC");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
@ -47,6 +28,10 @@ public final class SpiritToken extends TokenImpl {
|
|||
if (getOriginalExpansionSetCode() != null && getOriginalExpansionSetCode().equals("BOK")) {
|
||||
setTokenType(2);
|
||||
}
|
||||
|
||||
if (getOriginalExpansionSetCode() != null && getOriginalExpansionSetCode().equals("EMA")) {
|
||||
setTokenType(2);
|
||||
}
|
||||
}
|
||||
|
||||
public SpiritToken(final SpiritToken token) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue