Browse Source

More powerAction work

feature-config-parsing2
MagicBot 4 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 {
effectDescription.cycleDelay = Integer.parseInt(headerIterator.next()); effectDescription.cycleDelay = Integer.parseInt(headerIterator.next());
powerActionEntry.effects.add(effectDescription); powerActionEntry.effects.add(effectDescription);
break; 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 "Transform":
case "Invis": case "Invis":
case "ApplyEffect": case "ApplyEffect":
case "ApplyEffects":
case "DeferredPower": case "DeferredPower":
case "DirectDamage": case "DirectDamage":
while (headerIterator.hasNext()) { while (headerIterator.hasNext()) {

Loading…
Cancel
Save