diff --git a/src/engine/wpak/PowersParser.java b/src/engine/wpak/PowersParser.java index d41bd8ba..9b021f17 100644 --- a/src/engine/wpak/PowersParser.java +++ b/src/engine/wpak/PowersParser.java @@ -219,6 +219,7 @@ public class PowersParser { effectPreReq.effect_id = arguments[9]; effectPreReq.level = Integer.parseInt(arguments[1]); effectPreReq.message = arguments[2]; + powerEntry.effectPreReqs.add(effectPreReq); break; case "MONSTERTYPERESTRICTS": arguments = lineValues[1].trim().split("\\s+"); diff --git a/src/engine/wpak/data/PowerEntry.java b/src/engine/wpak/data/PowerEntry.java index 1177fb19..f0afcc1c 100644 --- a/src/engine/wpak/data/PowerEntry.java +++ b/src/engine/wpak/data/PowerEntry.java @@ -49,6 +49,7 @@ public class PowerEntry { public String category; public boolean canCastWhileMoving = false; public boolean bladeTrails = false; + public ArrayList effectPreReqs = new ArrayList<>(); public EquipmentPreReq equipmentPreReq; public EnumSet monsterRestricts = EnumSet.noneOf(mbEnums.MonsterType.class); public EnumSet monsterPrereqs = EnumSet.noneOf(mbEnums.MonsterType.class);