Browse Source

More poweraction parsing work.

feature-config-parsing2
MagicBot 3 months ago
parent
commit
7723ac8830
  1. 7
      src/engine/wpak/PowerActionParser.java
  2. 1
      src/engine/wpak/data/EffectDescription.java

7
src/engine/wpak/PowerActionParser.java

@ -139,6 +139,13 @@ public class PowerActionParser {
statTransfer.tranfer_ticks = Integer.parseInt(headerIterator.next()); statTransfer.tranfer_ticks = Integer.parseInt(headerIterator.next());
powerActionEntry.statTransfer = statTransfer; powerActionEntry.statTransfer = statTransfer;
break; break;
case "CHARM":
effectDescription = new EffectDescription();
effectDescription.effect_id = headerIterator.next();
effectDescription.level = Integer.parseInt(headerIterator.next());
effectDescription.type = headerIterator.next();
powerActionEntry.effects.add(effectDescription);
break;
case "Teleport":// No arguments for these tags case "Teleport":// No arguments for these tags
case "TreeChoke": case "TreeChoke":
break; break;

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

@ -10,6 +10,7 @@ package engine.wpak.data;
public class EffectDescription { public class EffectDescription {
public String effect_id; public String effect_id;
public String type;
public int level; public int level;
public String message; public String message;
public int cycleDuration; public int cycleDuration;

Loading…
Cancel
Save