More PowerAction parsing work.

This commit is contained in:
2024-08-20 19:09:26 -04:00
parent 2e8b4c97ac
commit 345e729d1a
+3 -2
View File
@@ -103,11 +103,12 @@ public class PowerActionParser {
powerActionEntry.effects.add(effectDescription); powerActionEntry.effects.add(effectDescription);
break; break;
case "ApplyEffects": case "ApplyEffects":
int level = Integer.parseInt(headerIterator.next());
while (headerIterator.hasNext()) { while (headerIterator.hasNext()) {
effectDescription = new EffectDescription(); effectDescription = new EffectDescription();
effectDescription.level = Integer.parseInt(headerIterator.next()); effectDescription.level = level;
effectDescription.effect_id = headerIterator.next(); effectDescription.effect_id = headerIterator.next();
effectDescription.type = headerIterator.next();
powerActionEntry.effects.add(effectDescription); powerActionEntry.effects.add(effectDescription);
} }
break; break;