forked from External/mage
[RNA] added tokens and download support from scryfall;
This commit is contained in:
parent
5a91494be3
commit
1b55cbd44c
15 changed files with 140 additions and 62 deletions
|
|
@ -1,17 +1,15 @@
|
|||
|
||||
|
||||
package mage.game.permanent.token;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.util.RandomUtil;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.MageInt;
|
||||
import mage.util.RandomUtil;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author LevelX2
|
||||
*/
|
||||
public final class CentaurToken extends TokenImpl {
|
||||
|
|
@ -19,13 +17,16 @@ public final class CentaurToken extends TokenImpl {
|
|||
final static private List<String> tokenImageSets = new ArrayList<>();
|
||||
|
||||
static {
|
||||
tokenImageSets.addAll(Arrays.asList("RTR", "MM3"));
|
||||
tokenImageSets.addAll(Arrays.asList("RTR", "MM3", "RNA"));
|
||||
}
|
||||
|
||||
public CentaurToken() {
|
||||
super("Centaur", "3/3 green Centaur creature token");
|
||||
cardType.add(CardType.CREATURE);
|
||||
setTokenType(RandomUtil.nextInt(2) +1); // randomly take image 1 or 2
|
||||
availableImageSetCodes = tokenImageSets;
|
||||
if (getOriginalExpansionSetCode() != null && getOriginalExpansionSetCode().equals("RNA")) {
|
||||
setTokenType(RandomUtil.nextInt(2) + 1); // randomly take image 1 or 2
|
||||
}
|
||||
color.setGreen(true);
|
||||
subtype.add(SubType.CENTAUR);
|
||||
power = new MageInt(3);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue