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 {
trackEntry.max = Integer.parseInt(headerIterator.next()); trackEntry.max = Integer.parseInt(headerIterator.next());
powerAction.trackEntry = trackEntry; powerAction.trackEntry = trackEntry;
break; break;
case "Teleport":
if (headerIterator.hasNext())
powerAction.ignoreNoTeleSpire = Boolean.parseBoolean(headerIterator.next());
break;
case "Recall": // No arguments for these tags or not parsed case "Recall": // No arguments for these tags or not parsed
case "Summon": case "Summon":
case "Teleport":
case "TreeChoke": case "TreeChoke":
case "SimpleDamage": case "SimpleDamage":
case "MobRecall": // One argument always zero case "MobRecall": // One argument always zero

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

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

Loading…
Cancel
Save