Browse Source

Teleport bool parsed

feature-config-usage
MagicBot 2 months ago
parent
commit
5e5203aa36
  1. 5
      src/engine/wpak/PowerActionParser.java
  2. 1
      src/engine/wpak/data/PowerAction.java

5
src/engine/wpak/PowerActionParser.java

@ -186,9 +186,12 @@ public class PowerActionParser { @@ -186,9 +186,12 @@ public class PowerActionParser {
trackEntry.max = Integer.parseInt(headerIterator.next());
powerAction.trackEntry = trackEntry;
break;
case "Teleport":
if (headerIterator.hasNext())
powerAction.ignoreNoTeleSpire = Boolean.parseBoolean(headerIterator.next());
break;
case "Recall": // No arguments for these tags or not parsed
case "Summon":
case "Teleport":
case "TreeChoke":
case "SimpleDamage":
case "MobRecall": // One argument always zero

1
src/engine/wpak/data/PowerAction.java

@ -48,6 +48,7 @@ public class PowerAction { @@ -48,6 +48,7 @@ public class PowerAction {
public mbEnums.MobBehaviourType rootFsmID;
public int splashDamageMin;
public int splashDamageMax;
public boolean ignoreNoTeleSpire = false;
}

Loading…
Cancel
Save