Browse Source

PowerAction parsing work.

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

3
src/engine/wpak/PowerActionParser.java

@ -164,6 +164,9 @@ public class PowerActionParser { @@ -164,6 +164,9 @@ public class PowerActionParser {
for (String bodyPart : arguments)
powerActionEntry.attackAnimations.add(Integer.parseInt(bodyPart));
break;
case "REMOVEALL":
powerActionEntry.removeAll = Boolean.parseBoolean(lineValues[1].trim());
break;
case "WEAROFFEFFECTOTHER": // Keys not parsed go here.
case "WEAROFFEFFECTSELF":
break;

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

@ -33,7 +33,8 @@ public class PowerActionEntry { @@ -33,7 +33,8 @@ public class PowerActionEntry {
public mbEnums.DamageType damageType;
public boolean applyEffectBlank = false;
public boolean wearOffEffectBlank = false;
public int arg1;
public int arg1; // used in DamageOverTime, CreateMob, etc.
public int arg2;
public boolean removeAll;
}

Loading…
Cancel
Save