Browse Source

More powerAction work

feature-config-parsing2
MagicBot 4 months ago
parent
commit
e56c5a4fdc
  1. 3
      src/engine/wpak/PowerActionParser.java
  2. 1
      src/engine/wpak/data/PowerActionEntry.java

3
src/engine/wpak/PowerActionParser.java

@ -176,11 +176,13 @@ public class PowerActionParser { @@ -176,11 +176,13 @@ public class PowerActionParser {
trackEntry.type = headerIterator.next();
trackEntry.min = Integer.parseInt(headerIterator.next());
trackEntry.max = Integer.parseInt(headerIterator.next());
powerActionEntry.trackEntry = trackEntry;
break;
case "NOTRANSFORM":
effectDescription = new EffectDescription();
effectDescription.type = headerIterator.next();
effectDescription.effect_id = headerIterator.next();
powerActionEntry.effects.add(effectDescription);
break;
case "NOROOT":
case "NOSNARE":
@ -197,6 +199,7 @@ public class PowerActionParser { @@ -197,6 +199,7 @@ public class PowerActionParser {
effectDescription.type = headerIterator.next();
effectDescription.effect_id = headerIterator.next();
effectDescription.level = Integer.parseInt(headerIterator.next());
powerActionEntry.effects.add(effectDescription);
break;
case "Recall": // No arguments for these tags or not parsed
case "Teleport":

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

@ -24,6 +24,7 @@ public class PowerActionEntry { @@ -24,6 +24,7 @@ public class PowerActionEntry {
public StatTransfer statTransfer;
public int levelCap;
public mbEnums.CompoundCurveType levelCurve;
public TrackEntry trackEntry;
// Additional variables after header go here.

Loading…
Cancel
Save