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