Browse Source

More powerAction work

feature-config-parsing2
MagicBot 3 months ago
parent
commit
d0c41816ac
  1. 9
      src/engine/wpak/PowerActionParser.java

9
src/engine/wpak/PowerActionParser.java

@ -102,10 +102,17 @@ public class PowerActionParser { @@ -102,10 +102,17 @@ public class PowerActionParser {
effectDescription.cycleDelay = Integer.parseInt(headerIterator.next());
powerActionEntry.effects.add(effectDescription);
break;
case "ApplyEffects":
while (headerIterator.hasNext()) {
effectDescription = new EffectDescription();
effectDescription.level = Integer.parseInt(headerIterator.next());
effectDescription.effect_id = headerIterator.next();
powerActionEntry.effects.add(effectDescription);
}
break;
case "Transform":
case "Invis":
case "ApplyEffect":
case "ApplyEffects":
case "DeferredPower":
case "DirectDamage":
while (headerIterator.hasNext()) {

Loading…
Cancel
Save