Cost.parseCostPart add ChooseColor

This commit is contained in:
Northmoc
2022-08-17 15:29:06 -04:00
parent 8a691a5114
commit a3238ee657

View File

@@ -341,6 +341,13 @@ public class Cost implements Serializable {
return new CostUnattach(splitStr[0], description);
}
if (parse.startsWith("ChooseColor<")) {
// ChooseColor<NumToChoose>
//TODO expand this to set off different UI for Specialize
final String[] splitStr = abCostParse(parse, 1);
return new CostChooseColor(splitStr[0]);
}
if (parse.startsWith("ChooseCreatureType<")) {
final String[] splitStr = abCostParse(parse, 1);
return new CostChooseCreatureType(splitStr[0]);