Browse Source

PowerAction work started.

feature-config-parsing2
MagicBot 4 months ago
parent
commit
85ee1faf4a
  1. 3
      src/engine/wpak/PowersParser.java
  2. 3
      src/engine/wpak/data/PowerEntry.java

3
src/engine/wpak/PowersParser.java

@ -190,8 +190,7 @@ public class PowersParser { @@ -190,8 +190,7 @@ public class PowersParser {
break;
case "CURVE":
arguments = lineValues[1].trim().split("\\s+");
powerEntry.slopeType = arguments[0];
powerEntry.curve = mbEnums.CompoundCurveType.valueOf(arguments[1]);
powerEntry.curves.put(arguments[0], mbEnums.CompoundCurveType.valueOf(arguments[1]));
break;
case "EQPREREQ":
EquipmentPreReq equipmentPreReq = new EquipmentPreReq();

3
src/engine/wpak/data/PowerEntry.java

@ -45,8 +45,7 @@ public class PowerEntry { @@ -45,8 +45,7 @@ public class PowerEntry {
public int loopAnimID;
public String grantOverrideVar;
public ArrayList<String> description = new ArrayList<>();
public String slopeType;
public mbEnums.CompoundCurveType curve;
public HashMap<String, mbEnums.CompoundCurveType> curves;
public String category;
public boolean canCastWhileMoving = false;
public boolean bladeTrails = false;

Loading…
Cancel
Save