mirror of
https://github.com/correl/mage.git
synced 2025-04-10 09:11:04 -09:00
Token refactor
This commit is contained in:
parent
a897b374a0
commit
bec0964726
4 changed files with 7 additions and 2 deletions
Mage.Client/src/main/java/mage/client/deckeditor/collection/viewer
Mage/src/main/java/mage/game/permanent/token
|
@ -347,6 +347,8 @@ public class MageBook extends JComponent {
|
||||||
Constructor<?> cons = c.getConstructor();
|
Constructor<?> cons = c.getConstructor();
|
||||||
Object newToken = cons.newInstance();
|
Object newToken = cons.newInstance();
|
||||||
if (newToken != null && newToken instanceof mage.game.permanent.token.Token) {
|
if (newToken != null && newToken instanceof mage.game.permanent.token.Token) {
|
||||||
|
((Token) newToken).setExpansionSetCodeForImage(set);
|
||||||
|
((Token) newToken).setOriginalExpansionSetCode(set);
|
||||||
tokens.add((Token) newToken);
|
tokens.add((Token) newToken);
|
||||||
}
|
}
|
||||||
} catch (ClassNotFoundException ex) {
|
} catch (ClassNotFoundException ex) {
|
||||||
|
|
|
@ -37,7 +37,7 @@ import mage.MageInt;
|
||||||
public class DinOfTheFireherdToken extends Token {
|
public class DinOfTheFireherdToken extends Token {
|
||||||
|
|
||||||
public DinOfTheFireherdToken() {
|
public DinOfTheFireherdToken() {
|
||||||
super("", "5/5 black and red Elemental creature");
|
super("Elemental", "5/5 black and red Elemental creature");
|
||||||
cardType.add(CardType.CREATURE);
|
cardType.add(CardType.CREATURE);
|
||||||
subtype.add("Elemental");
|
subtype.add("Elemental");
|
||||||
color.setBlack(true);
|
color.setBlack(true);
|
||||||
|
|
|
@ -38,7 +38,7 @@ import mage.constants.SuperType;
|
||||||
public class TuktukTheReturnedToken extends Token {
|
public class TuktukTheReturnedToken extends Token {
|
||||||
|
|
||||||
public TuktukTheReturnedToken() {
|
public TuktukTheReturnedToken() {
|
||||||
this("ZEN");
|
this("ROE");
|
||||||
}
|
}
|
||||||
|
|
||||||
public TuktukTheReturnedToken(String setCode) {
|
public TuktukTheReturnedToken(String setCode) {
|
||||||
|
|
|
@ -37,6 +37,9 @@ import mage.abilities.keyword.DeathtouchAbility;
|
||||||
*/
|
*/
|
||||||
public class Wurm1Token extends Token {
|
public class Wurm1Token extends Token {
|
||||||
|
|
||||||
|
public Wurm1Token() {
|
||||||
|
this("MBS");
|
||||||
|
}
|
||||||
public Wurm1Token(String setCode) {
|
public Wurm1Token(String setCode) {
|
||||||
super("Wurm", "3/3 colorless Wurm artifact creature token with deathtouch");
|
super("Wurm", "3/3 colorless Wurm artifact creature token with deathtouch");
|
||||||
setOriginalExpansionSetCode(setCode);
|
setOriginalExpansionSetCode(setCode);
|
||||||
|
|
Loading…
Add table
Reference in a new issue