mirror of
https://github.com/magefree/mage.git
synced 2025-12-30 07:22:03 -08:00
* Some changes to token handling and some cards.
This commit is contained in:
parent
3d6467225a
commit
62a605d3e7
13 changed files with 91 additions and 55 deletions
|
|
@ -27,8 +27,10 @@
|
|||
*/
|
||||
package mage.game.permanent.token;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
import mage.MageInt;
|
||||
import mage.ObjectColor;
|
||||
import mage.constants.CardType;
|
||||
|
||||
/**
|
||||
|
|
@ -37,12 +39,22 @@ import mage.constants.CardType;
|
|||
*/
|
||||
public class GoblinToken extends Token {
|
||||
|
||||
static List<String> imageSetCodes = Arrays.asList(
|
||||
"M10", "C14", "KTK", "EVG"
|
||||
);
|
||||
|
||||
public GoblinToken() {
|
||||
this("M10");
|
||||
this(imageSetCodes.get(new Random().nextInt(imageSetCodes.size())));
|
||||
}
|
||||
|
||||
public GoblinToken(String originalExpansionSetCode) {
|
||||
super("Goblin", "1/1 red Goblin creature token");
|
||||
this.setOriginalExpansionSetCode(originalExpansionSetCode);
|
||||
if (!imageSetCodes.contains(originalExpansionSetCode)) {
|
||||
this.setOriginalExpansionSetCode(imageSetCodes.get(new Random().nextInt(imageSetCodes.size())));
|
||||
} else {
|
||||
this.setOriginalExpansionSetCode(originalExpansionSetCode);
|
||||
}
|
||||
|
||||
cardType.add(CardType.CREATURE);
|
||||
subtype.add("Goblin");
|
||||
|
||||
|
|
@ -50,4 +62,4 @@ public class GoblinToken extends Token {
|
|||
power = new MageInt(1);
|
||||
toughness = new MageInt(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue