Browse Source

PowerAction parsing work.

feature-config-parsing2
MagicBot 4 months ago
parent
commit
f2eaf61bd0
  1. 6
      src/engine/wpak/PowerActionParser.java

6
src/engine/wpak/PowerActionParser.java

@ -93,10 +93,14 @@ public class PowerActionParser {
powerActionEntry.arg1 = Integer.parseInt(headerIterator.next()); powerActionEntry.arg1 = Integer.parseInt(headerIterator.next());
powerActionEntry.arg2 = Integer.parseInt(headerIterator.next()); powerActionEntry.arg2 = Integer.parseInt(headerIterator.next());
break; break;
case "Transform":
case "Invis":
powerActionEntry.effect_id = headerIterator.next();
powerActionEntry.arg1 = Integer.parseInt(headerIterator.next());
break;
case "ApplyEffect": case "ApplyEffect":
case "DeferredPower": case "DeferredPower":
case "DirectDamage": case "DirectDamage":
case "Invis":
while (headerIterator.hasNext()) { while (headerIterator.hasNext()) {
effectDescription = new EffectDescription(); effectDescription = new EffectDescription();
effectDescription.effect_id = headerIterator.next(); effectDescription.effect_id = headerIterator.next();

Loading…
Cancel
Save