From c35e689d1baa85aea1d0172cfffd97494ac060cd Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 19 Aug 2024 08:16:31 -0400 Subject: [PATCH] More PowerEntry parsing work. --- src/engine/wpak/PowersParser.java | 1 + src/engine/wpak/data/PowerEntry.java | 1 + 2 files changed, 2 insertions(+) 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);