Browse Source

More poweraction parsing work.

feature-config-parsing2
MagicBot 3 months ago
parent
commit
27c1ec0e55
  1. 3
      src/engine/wpak/PowerActionParser.java
  2. 1
      src/engine/wpak/data/PowerActionEntry.java

3
src/engine/wpak/PowerActionParser.java

@ -155,6 +155,9 @@ public class PowerActionParser {
case "Resurrect": case "Resurrect":
powerActionEntry.levelCap = Integer.parseInt(headerIterator.next()); powerActionEntry.levelCap = Integer.parseInt(headerIterator.next());
break; break;
case "SetItemFlag":
powerActionEntry.itemFlag = mbEnums.ItemFlags.valueOf(headerIterator.next());
break;
case "Recall": // No arguments for these tags or not parsed case "Recall": // No arguments for these tags or not parsed
case "Teleport": case "Teleport":
case "TreeChoke": case "TreeChoke":

1
src/engine/wpak/data/PowerActionEntry.java

@ -43,5 +43,6 @@ public class PowerActionEntry {
public boolean clearAggro = false; public boolean clearAggro = false;
public boolean targetBecomesPet = false; public boolean targetBecomesPet = false;
public boolean destroyOldPet = false; public boolean destroyOldPet = false;
public mbEnums.ItemFlags itemFlag;
} }

Loading…
Cancel
Save