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

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

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

Loading…
Cancel
Save