More poweraction parsing work.

This commit is contained in:
2024-08-20 16:49:51 -04:00
parent b5cc45aafd
commit 7723ac8830
2 changed files with 8 additions and 0 deletions
+7
View File
@@ -139,6 +139,13 @@ public class PowerActionParser {
statTransfer.tranfer_ticks = Integer.parseInt(headerIterator.next());
powerActionEntry.statTransfer = statTransfer;
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 "TreeChoke":
break;
@@ -10,6 +10,7 @@ package engine.wpak.data;
public class EffectDescription {
public String effect_id;
public String type;
public int level;
public String message;
public int cycleDuration;