Browse Source

More PowerAction parsing work.

feature-config-parsing2
MagicBot 3 months ago
parent
commit
345e729d1a
  1. 5
      src/engine/wpak/PowerActionParser.java

5
src/engine/wpak/PowerActionParser.java

@ -103,11 +103,12 @@ public class PowerActionParser { @@ -103,11 +103,12 @@ public class PowerActionParser {
powerActionEntry.effects.add(effectDescription);
break;
case "ApplyEffects":
int level = Integer.parseInt(headerIterator.next());
while (headerIterator.hasNext()) {
effectDescription = new EffectDescription();
effectDescription.level = Integer.parseInt(headerIterator.next());
effectDescription.level = level;
effectDescription.effect_id = headerIterator.next();
effectDescription.type = headerIterator.next();
powerActionEntry.effects.add(effectDescription);
}
break;

Loading…
Cancel
Save