forked from External/mage
Tokens improves:
* [M21] added tokens; * [M21] added tokens download support; * Fixed wrong images for some tokens (Angel, Beast, Bird, Cat, etc);
This commit is contained in:
parent
4dc99fbb58
commit
99ceeb5076
26 changed files with 298 additions and 206 deletions
|
|
@ -29,6 +29,7 @@ public final class SaprolingToken extends TokenImpl {
|
|||
"MM2",
|
||||
"MM3",
|
||||
"MMA",
|
||||
"NEM",
|
||||
"RTR",
|
||||
"C15",
|
||||
"MM3",
|
||||
|
|
@ -40,7 +41,8 @@ public final class SaprolingToken extends TokenImpl {
|
|||
"RIX",
|
||||
"DOM", // 3 different token images
|
||||
"C19",
|
||||
"C20"
|
||||
"C20",
|
||||
"M21"
|
||||
));
|
||||
}
|
||||
|
||||
|
|
@ -52,13 +54,6 @@ public final class SaprolingToken extends TokenImpl {
|
|||
subtype.add(SubType.SAPROLING);
|
||||
power = new MageInt(1);
|
||||
toughness = new MageInt(1);
|
||||
|
||||
if (getOriginalExpansionSetCode() != null && getOriginalExpansionSetCode().equals("C16")) {
|
||||
this.setTokenType(RandomUtil.nextInt(2) + 1);
|
||||
}
|
||||
if (getOriginalExpansionSetCode() != null && getOriginalExpansionSetCode().equals("DOM")) {
|
||||
this.setTokenType(RandomUtil.nextInt(3) + 1);
|
||||
}
|
||||
}
|
||||
|
||||
public SaprolingToken(final SaprolingToken token) {
|
||||
|
|
@ -68,4 +63,23 @@ public final class SaprolingToken extends TokenImpl {
|
|||
public SaprolingToken copy() {
|
||||
return new SaprolingToken(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setExpansionSetCodeForImage(String code) {
|
||||
super.setExpansionSetCodeForImage(code);
|
||||
|
||||
if (getOriginalExpansionSetCode() != null && getOriginalExpansionSetCode().equals("NEM")) {
|
||||
this.setTokenType(2);
|
||||
}
|
||||
if (getOriginalExpansionSetCode() != null && getOriginalExpansionSetCode().equals("VMA")) {
|
||||
this.setTokenType(2);
|
||||
}
|
||||
|
||||
if (getOriginalExpansionSetCode() != null && getOriginalExpansionSetCode().equals("C16")) {
|
||||
this.setTokenType(RandomUtil.nextInt(2) + 1);
|
||||
}
|
||||
if (getOriginalExpansionSetCode() != null && getOriginalExpansionSetCode().equals("DOM")) {
|
||||
this.setTokenType(RandomUtil.nextInt(3) + 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue