Browse Source

More powerAction work

feature-config-parsing2
MagicBot 3 months ago
parent
commit
4e3a578ad1
  1. 21
      src/engine/wpak/PowerActionParser.java

21
src/engine/wpak/PowerActionParser.java

@ -177,6 +177,27 @@ public class PowerActionParser { @@ -177,6 +177,27 @@ public class PowerActionParser {
trackEntry.min = Integer.parseInt(headerIterator.next());
trackEntry.max = Integer.parseInt(headerIterator.next());
break;
case "NOTRANSFORM":
effectDescription = new EffectDescription();
effectDescription.type = headerIterator.next();
effectDescription.effect_id = headerIterator.next();
break;
case "NOROOT":
case "NOSNARE":
case "NOSTANCE-A":
case "NOSTANCE-B":
case "NOSTUN":
case "NOSTUN1":
case "NOSTUN2":
case "NOSTUN3":
case "NOSTUN4":
case "NOSTUN5":
case "NOSTUN6":
effectDescription = new EffectDescription();
effectDescription.type = headerIterator.next();
effectDescription.effect_id = headerIterator.next();
effectDescription.level = Integer.parseInt(headerIterator.next());
break;
case "Recall": // No arguments for these tags or not parsed
case "Teleport":
case "TreeChoke":

Loading…
Cancel
Save