|
|
@ -82,12 +82,13 @@ public class PowerActionParser { |
|
|
|
|
|
|
|
|
|
|
|
switch (powerActionEntry.action_type) { |
|
|
|
switch (powerActionEntry.action_type) { |
|
|
|
case "RemoveEffect": |
|
|
|
case "RemoveEffect": |
|
|
|
effectDescription = new EffectDescription(); |
|
|
|
powerActionEntry.effect_id = headerIterator.next(); |
|
|
|
effectDescription.effect_id = headerIterator.next(); |
|
|
|
break; |
|
|
|
powerActionEntry.effects.add(effectDescription); |
|
|
|
|
|
|
|
case "CreateMob": |
|
|
|
case "CreateMob": |
|
|
|
powerActionEntry.petLevel = Integer.parseInt(headerIterator.next()); |
|
|
|
case "DamageOverTime": |
|
|
|
powerActionEntry.petRace = Integer.parseInt(headerIterator.next()); |
|
|
|
powerActionEntry.effect_id = headerIterator.next(); |
|
|
|
|
|
|
|
powerActionEntry.arg1 = Integer.parseInt(headerIterator.next()); |
|
|
|
|
|
|
|
powerActionEntry.arg2 = Integer.parseInt(headerIterator.next()); |
|
|
|
break; |
|
|
|
break; |
|
|
|
case "ApplyEffect": |
|
|
|
case "ApplyEffect": |
|
|
|
case "DeferredPower": |
|
|
|
case "DeferredPower": |
|
|
@ -99,6 +100,8 @@ public class PowerActionParser { |
|
|
|
powerActionEntry.effects.add(effectDescription); |
|
|
|
powerActionEntry.effects.add(effectDescription); |
|
|
|
} |
|
|
|
} |
|
|
|
break; |
|
|
|
break; |
|
|
|
|
|
|
|
case "Teleport": // No arguments
|
|
|
|
|
|
|
|
break; |
|
|
|
default: |
|
|
|
default: |
|
|
|
Logger.error("Unhandled type " + powerActionEntry.action_type + " for Pow4erAction: " + powerActionEntry.action_id); |
|
|
|
Logger.error("Unhandled type " + powerActionEntry.action_type + " for Pow4erAction: " + powerActionEntry.action_id); |
|
|
|
break; |
|
|
|
break; |
|
|
|