cleanup usage of SubType from string

This commit is contained in:
xenohedron 2023-12-21 22:07:16 -05:00
parent 4f2f566b32
commit 66716a4314
4 changed files with 17 additions and 10 deletions

View file

@ -600,6 +600,9 @@ public enum SubType {
return customSet;
}
/**
* Use in test framework only, use SubType.byDescription instead for card logic
*/
public static SubType fromString(String value) {
for (SubType st : SubType.values()) {
if (st.toString().equals(value)) {