Browse Source

More poweraction parsing work.

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

3
src/engine/wpak/PowerActionParser.java

@ -240,6 +240,9 @@ public class PowerActionParser {
case "TARGETBECOMESPET": case "TARGETBECOMESPET":
powerActionEntry.targetBecomesPet = Boolean.parseBoolean(lineValues[1].trim()); powerActionEntry.targetBecomesPet = Boolean.parseBoolean(lineValues[1].trim());
break; break;
case "DESTROYOLDPET":
powerActionEntry.destroyOldPet = Boolean.parseBoolean(lineValues[1].trim());
break;
case "APPLYEFFECTOTHER": case "APPLYEFFECTOTHER":
case "APPLYEFFECTSELF": case "APPLYEFFECTSELF":
case "WEAROFFEFFECTOTHER": // Keys not parsed go here. case "WEAROFFEFFECTOTHER": // Keys not parsed go here.

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

@ -42,5 +42,6 @@ public class PowerActionEntry {
public boolean removeAll = false; public boolean removeAll = false;
public boolean clearAggro = false; public boolean clearAggro = false;
public boolean targetBecomesPet = false; public boolean targetBecomesPet = false;
public boolean destroyOldPet = false;
} }

Loading…
Cancel
Save