Browse Source

More poweraction parsing work.

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

6
src/engine/wpak/PowerActionParser.java

@ -146,6 +146,12 @@ public class PowerActionParser { @@ -146,6 +146,12 @@ public class PowerActionParser {
effectDescription.type = headerIterator.next();
powerActionEntry.effects.add(effectDescription);
break;
case "Block":
effectDescription = new EffectDescription();
effectDescription.effect_id = headerIterator.next();
effectDescription.level = Integer.parseInt(headerIterator.next());
powerActionEntry.effects.add(effectDescription);
break;
case "Teleport":// No arguments for these tags
case "TreeChoke":
break;

Loading…
Cancel
Save