[LTR] Implement Pippin, Guardian of the Citadel

This commit is contained in:
theelk801 2023-06-10 19:05:52 -04:00
parent bcaaf4101e
commit d0cc29cac4
3 changed files with 106 additions and 0 deletions

View file

@ -45,6 +45,10 @@ public enum CardType {
return text;
}
public String getPluralName() {
return text.endsWith("y") ? text.substring(0, text.length() - 1) + "ies" : text + 's';
}
public static CardType fromString(String value) {
for (CardType ct : CardType.values()) {
if (ct.toString().equals(value)) {