From 5a1027c611f69e9164cb6435a648c4ecc9889479 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 1 Apr 2024 16:26:35 -0400 Subject: [PATCH] Proper parsing of power grants --- src/engine/objects/ItemTemplate.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/engine/objects/ItemTemplate.java b/src/engine/objects/ItemTemplate.java index 22831a8c..cfaaca86 100644 --- a/src/engine/objects/ItemTemplate.java +++ b/src/engine/objects/ItemTemplate.java @@ -358,6 +358,10 @@ public class ItemTemplate { JSONObject powerGrantEntry = (JSONObject) grantArrayEntry; JSONArray powerGrants = (JSONArray) powerGrantEntry.get("power_granted_powers"); + for (Object grantedPowerEntry : powerGrants) { + JSONObject grantedPower = (JSONObject) grantedPowerEntry; + + } } }