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 {
break; break;
case "CURVE": case "CURVE":
arguments = lineValues[1].trim().split("\\s+"); arguments = lineValues[1].trim().split("\\s+");
powerEntry.slopeType = arguments[0]; powerEntry.curves.put(arguments[0], mbEnums.CompoundCurveType.valueOf(arguments[1]));
powerEntry.curve = mbEnums.CompoundCurveType.valueOf(arguments[1]);
break; break;
case "EQPREREQ": case "EQPREREQ":
EquipmentPreReq equipmentPreReq = new EquipmentPreReq(); EquipmentPreReq equipmentPreReq = new EquipmentPreReq();

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

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

Loading…
Cancel
Save