Browse Source

More PowerAction parsing work.

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

5
src/engine/wpak/PowerActionParser.java

@ -285,6 +285,11 @@ public class PowerActionParser { @@ -285,6 +285,11 @@ public class PowerActionParser {
case "ROOTFSMID":
powerActionEntry.rootFsmID = mbEnums.MobBehaviourType.valueOf(lineValues[1].trim());
break;
case "SPLASHDAMAGE":
arguments = lineValues[1].trim().split("\\s+");
powerActionEntry.splashDamageMin = Integer.parseInt(arguments[0]);
powerActionEntry.splashDamageMax = Integer.parseInt(arguments[1]);
break;
case "APPLYEFFECTOTHER":
case "APPLYEFFECTSELF":
case "WEAROFFEFFECTOTHER": // Keys not parsed go here.

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

@ -46,5 +46,8 @@ public class PowerActionEntry { @@ -46,5 +46,8 @@ public class PowerActionEntry {
public boolean destroyOldPet = false;
public mbEnums.ItemFlags itemFlag;
public mbEnums.MobBehaviourType rootFsmID;
public int splashDamageMin;
public int splashDamageMax;
}

Loading…
Cancel
Save