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 {
effectDescription.type = headerIterator.next(); effectDescription.type = headerIterator.next();
powerActionEntry.effects.add(effectDescription); powerActionEntry.effects.add(effectDescription);
break; 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 "Teleport":// No arguments for these tags
case "TreeChoke": case "TreeChoke":
break; break;

Loading…
Cancel
Save