forked from MagicBane/Server
Enum set for category
This commit is contained in:
@@ -191,7 +191,7 @@ public class PowersParser {
|
||||
powerEntry.description.add(lineValues.get(1).trim());
|
||||
break;
|
||||
case "CATEGORY":
|
||||
powerEntry.category = lineValues.get(1).trim();
|
||||
powerEntry.category = mbEnums.PowerCategoryType.valueOf(lineValues.get(1).trim());
|
||||
break;
|
||||
case "CURVE":
|
||||
arguments = Arrays.asList(lineValues.get(1).trim().split("\\s+"));
|
||||
|
||||
@@ -47,7 +47,7 @@ public class Power {
|
||||
public String grantOverrideVar;
|
||||
public ArrayList<String> description = new ArrayList<>();
|
||||
public HashMap<String, mbEnums.CompoundCurveType> curves = new HashMap<>();
|
||||
public String category;
|
||||
public mbEnums.PowerCategoryType category;
|
||||
public boolean canCastWhileMoving = false;
|
||||
public boolean bladeTrails = false;
|
||||
public ArrayList<Effect> effectPreReqs = new ArrayList<>();
|
||||
|
||||
Reference in New Issue
Block a user