From 0829a60f35f0e5f7b5920f35adf9df638ad941c1 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Tue, 27 Feb 2024 15:40:55 -0500 Subject: [PATCH] More parsing work --- src/engine/objects/ItemTemplate.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/engine/objects/ItemTemplate.java b/src/engine/objects/ItemTemplate.java index 2fb32306..5a2ede0a 100644 --- a/src/engine/objects/ItemTemplate.java +++ b/src/engine/objects/ItemTemplate.java @@ -341,9 +341,9 @@ public class ItemTemplate { JSONObject powerActionEntry = (JSONObject) o; String power = (String) powerActionEntry.get("power_type"); 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, new int[]{1, 1}); + JSONArray power_args = (JSONArray) power_actions.get(9); + int[] power_arguments = {((Long) power_args.get(0)).intValue(), ((Long) power_args.get(1)).intValue()}; + item_power_action.put(power, power_arguments); } } catch (Exception e) {