Browse Source

More powerAction work

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

3
src/engine/wpak/PowerActionParser.java

@ -271,6 +271,9 @@ public class PowerActionParser { @@ -271,6 +271,9 @@ public class PowerActionParser {
case "DAMAGETYPE":
powerActionEntry.damageType = mbEnums.DamageType.valueOf(lineValues[1].trim().toUpperCase());
break;
case "ROOTFSMID":
powerActionEntry.rootFsmID = mbEnums.MobBehaviourType.valueOf(lineValues[1].trim());
break;
case "APPLYEFFECTOTHER":
case "APPLYEFFECTSELF":
case "WEAROFFEFFECTOTHER": // Keys not parsed go here.

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

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

Loading…
Cancel
Save