More PowerEntry work.

This commit is contained in:
2024-08-19 06:15:50 -04:00
parent 9428436883
commit d17db3a1fd
2 changed files with 9 additions and 2 deletions
+8 -1
View File
@@ -162,7 +162,11 @@ public class PowersParser {
case "HateValue": case "HateValue":
arguments = lineValues[1].trim().split(" "); arguments = lineValues[1].trim().split(" ");
powerEntry.hateValue = Integer.parseInt(arguments[0]); powerEntry.hateValue = Integer.parseInt(arguments[0]);
powerEntry.hateCurve = mbEnums.CompoundCurveType.valueOf(arguments[1]);
// Not all entries have a curve. Defaults to DefaultFlat;
if (arguments.length > 1)
powerEntry.hateCurve = mbEnums.CompoundCurveType.valueOf(arguments[1]);
break; break;
case "LOOPANIMID": case "LOOPANIMID":
powerEntry.loopAnimID = Integer.parseInt(lineValues[1].trim()); powerEntry.loopAnimID = Integer.parseInt(lineValues[1].trim());
@@ -196,6 +200,9 @@ public class PowersParser {
powerEntry.bladeTrails = Boolean.parseBoolean(lineValues[1].trim()); powerEntry.bladeTrails = Boolean.parseBoolean(lineValues[1].trim());
break; break;
case "SOUNDS": // Values not parsed case "SOUNDS": // Values not parsed
case "APPLYDAMAGECASTER":
case "APPLYDAMAGEOTHER":
case "APPLYDAMAGETARGET":
case "APPLYEFFECTSELF": case "APPLYEFFECTSELF":
case "APPLYEFFECTOTHER": case "APPLYEFFECTOTHER":
case "FIZZLEOTHER": case "FIZZLEOTHER":
+1 -1
View File
@@ -39,7 +39,7 @@ public class PowerEntry {
public ArrayList<PowerAction> actions = new ArrayList<>(); public ArrayList<PowerAction> actions = new ArrayList<>();
public int maxLevel; public int maxLevel;
public int hateValue; public int hateValue;
public mbEnums.CompoundCurveType hateCurve; public mbEnums.CompoundCurveType hateCurve = mbEnums.CompoundCurveType.DefaultFlat;
public int loopAnimID; public int loopAnimID;
public String grantOverrideVar; public String grantOverrideVar;
public ArrayList<String> description = new ArrayList<>(); public ArrayList<String> description = new ArrayList<>();