From 808a60c86c8c8f7148d880aa21c6c034ecd234b5 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Tue, 27 Feb 2024 15:35:03 -0500 Subject: [PATCH] More parsing work --- src/engine/objects/ItemTemplate.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/engine/objects/ItemTemplate.java b/src/engine/objects/ItemTemplate.java index 04070825..54dbe60e 100644 --- a/src/engine/objects/ItemTemplate.java +++ b/src/engine/objects/ItemTemplate.java @@ -340,10 +340,10 @@ public class ItemTemplate { for (Object o : item_power_actions) { JSONObject powerActionEntry = (JSONObject) o; String power = (String) powerActionEntry.get("power_type"); - JSONObject power_actions = (JSONObject) powerActionEntry.get("power_actions"); - JSONArray args = (JSONArray) power_actions.get("power_arguments"); - int[] power_arguments = {((Long) args.get(0)).intValue(), ((Long) args.get(1)).intValue()}; - item_power_action.put(power, power_arguments); + JSONArray power_actions = (JSONArray) powerActionEntry.get("power_actions"); + + //int[] power_arguments = {((Long) args.get(0)).intValue(), ((Long) args.get(1)).intValue()}; + item_power_action.put(power, 1); } } catch (Exception e) {