[WOE] Implement Embereth Veteran

This commit is contained in:
theelk801 2023-08-15 21:01:22 -04:00
parent eeb0f9b7d8
commit bd1b657e24
6 changed files with 211 additions and 0 deletions

View file

@ -0,0 +1,34 @@
package mage.constants;
import mage.game.permanent.token.Token;
import mage.game.permanent.token.YoungHeroRoleToken;
import java.util.function.Supplier;
/**
* @author TheElk801
*/
public enum RoleType {
YOUNG_HERO("Young Hero", YoungHeroRoleToken::new);
private final String name;
private final Supplier<Token> supplier;
RoleType(String name, Supplier<Token> supplier) {
this.name = name;
this.supplier = supplier;
}
public String getName() {
return name;
}
@Override
public String toString() {
return name;
}
public Token createToken() {
return supplier.get();
}
}

View file

@ -40,6 +40,7 @@ public enum SubType {
CARTOUCHE("Cartouche", SubTypeSet.EnchantmentType),
CLASS("Class", SubTypeSet.EnchantmentType),
CURSE("Curse", SubTypeSet.EnchantmentType),
ROLE("Role", SubTypeSet.EnchantmentType),
RUNE("Rune", SubTypeSet.EnchantmentType),
SAGA("Saga", SubTypeSet.EnchantmentType),
SHARD("Shard", SubTypeSet.EnchantmentType),