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 {
case "DAMAGETYPE": case "DAMAGETYPE":
powerActionEntry.damageType = mbEnums.DamageType.valueOf(lineValues[1].trim().toUpperCase()); powerActionEntry.damageType = mbEnums.DamageType.valueOf(lineValues[1].trim().toUpperCase());
break; break;
case "ROOTFSMID":
powerActionEntry.rootFsmID = mbEnums.MobBehaviourType.valueOf(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

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

Loading…
Cancel
Save