Browse Source

More poweraction parsing work.

feature-config-parsing2
MagicBot 4 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 { @@ -240,6 +240,9 @@ public class PowerActionParser {
case "TARGETBECOMESPET":
powerActionEntry.targetBecomesPet = Boolean.parseBoolean(lineValues[1].trim());
break;
case "DESTROYOLDPET":
powerActionEntry.destroyOldPet = Boolean.parseBoolean(lineValues[1].trim());
break;
case "APPLYEFFECTOTHER":
case "APPLYEFFECTSELF":
case "WEAROFFEFFECTOTHER": // Keys not parsed go here.

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

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

Loading…
Cancel
Save