Browse Source

More poweraction parsing work.

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

3
src/engine/wpak/PowerActionParser.java

@ -221,6 +221,9 @@ public class PowerActionParser {
powerActionEntry.levelCap = Integer.parseInt(arguments[0]); powerActionEntry.levelCap = Integer.parseInt(arguments[0]);
powerActionEntry.levelCurve = mbEnums.CompoundCurveType.valueOf(arguments[1]); powerActionEntry.levelCurve = mbEnums.CompoundCurveType.valueOf(arguments[1]);
break; break;
case "CLEARAGGRO":
powerActionEntry.clearAggro = Boolean.parseBoolean(lineValues[1].trim());
break;
case "WEAROFFEFFECTOTHER": // Keys not parsed go here. case "WEAROFFEFFECTOTHER": // Keys not parsed go here.
case "WEAROFFEFFECTSELF": case "WEAROFFEFFECTSELF":
break; break;

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

@ -39,6 +39,7 @@ public class PowerActionEntry {
public mbEnums.DamageType damageType; public mbEnums.DamageType damageType;
public boolean applyEffectBlank = false; public boolean applyEffectBlank = false;
public boolean wearOffEffectBlank = false; public boolean wearOffEffectBlank = false;
public boolean removeAll; public boolean removeAll = false;
public boolean clearAggro = false;
} }

Loading…
Cancel
Save