Refactor: fixed miss token constructors

This commit is contained in:
Oleg Agafonov 2023-04-05 09:36:26 +04:00
parent c3b54648a5
commit dddb7363b2
5 changed files with 20 additions and 0 deletions

View file

@ -11,6 +11,10 @@ import java.util.Arrays;
*/ */
public final class PhyrexianHorrorGreenToken extends TokenImpl { public final class PhyrexianHorrorGreenToken extends TokenImpl {
public PhyrexianHorrorGreenToken() {
this(0);
}
public PhyrexianHorrorGreenToken(int xValue) { public PhyrexianHorrorGreenToken(int xValue) {
super("Phyrexian Horror Token", "X/X green Phyrexian Horror creature token"); super("Phyrexian Horror Token", "X/X green Phyrexian Horror creature token");
cardType.add(CardType.CREATURE); cardType.add(CardType.CREATURE);

View file

@ -13,6 +13,10 @@ import java.util.Arrays;
*/ */
public final class PhyrexianHorrorRedToken extends TokenImpl { public final class PhyrexianHorrorRedToken extends TokenImpl {
public PhyrexianHorrorRedToken() {
this(0);
}
public PhyrexianHorrorRedToken(int xValue) { public PhyrexianHorrorRedToken(int xValue) {
super("Phyrexian Horror Token", "X/1 red Phyrexian Horror creature token with trample and haste"); super("Phyrexian Horror Token", "X/1 red Phyrexian Horror creature token with trample and haste");
cardType.add(CardType.CREATURE); cardType.add(CardType.CREATURE);

View file

@ -10,6 +10,10 @@ import mage.constants.SubType;
*/ */
public final class RiptideReplicatorToken extends TokenImpl { public final class RiptideReplicatorToken extends TokenImpl {
public RiptideReplicatorToken() {
this(new ObjectColor(), SubType.BEAR, 0);
}
public RiptideReplicatorToken(ObjectColor color, SubType type, int x) { public RiptideReplicatorToken(ObjectColor color, SubType type, int x) {
super(type.getDescription() + " Token", "X/X creature token of the chosen color and type"); super(type.getDescription() + " Token", "X/X creature token of the chosen color and type");
cardType.add(CardType.CREATURE); cardType.add(CardType.CREATURE);

View file

@ -11,6 +11,10 @@ import java.util.Arrays;
*/ */
public final class SpiritGreenXToken extends TokenImpl { public final class SpiritGreenXToken extends TokenImpl {
public SpiritGreenXToken() {
this(0);
}
public SpiritGreenXToken(int xValue) { public SpiritGreenXToken(int xValue) {
super("Spirit Token", "X/X green Spirit creature token"); super("Spirit Token", "X/X green Spirit creature token");
cardType.add(CardType.CREATURE); cardType.add(CardType.CREATURE);

View file

@ -10,6 +10,10 @@ import mage.constants.SubType;
*/ */
public final class VolrathsLaboratoryToken extends TokenImpl { public final class VolrathsLaboratoryToken extends TokenImpl {
public VolrathsLaboratoryToken() {
this(new ObjectColor(), SubType.BEAR);
}
public VolrathsLaboratoryToken(ObjectColor color, SubType type) { public VolrathsLaboratoryToken(ObjectColor color, SubType type) {
super(type.getDescription() + " Token", "2/2 creature token of the chosen color and type"); super(type.getDescription() + " Token", "2/2 creature token of the chosen color and type");
cardType.add(CardType.CREATURE); cardType.add(CardType.CREATURE);