Browse Source

More parsing work

combat-2
MagicBot 9 months ago
parent
commit
0829a60f35
  1. 6
      src/engine/objects/ItemTemplate.java

6
src/engine/objects/ItemTemplate.java

@ -341,9 +341,9 @@ public class ItemTemplate {
JSONObject powerActionEntry = (JSONObject) o; JSONObject powerActionEntry = (JSONObject) o;
String power = (String) powerActionEntry.get("power_type"); String power = (String) powerActionEntry.get("power_type");
JSONArray power_actions = (JSONArray) powerActionEntry.get("power_actions"); JSONArray power_actions = (JSONArray) powerActionEntry.get("power_actions");
JSONArray power_args = (JSONArray) power_actions.get(9);
//int[] power_arguments = {((Long) args.get(0)).intValue(), ((Long) args.get(1)).intValue()}; int[] power_arguments = {((Long) power_args.get(0)).intValue(), ((Long) power_args.get(1)).intValue()};
item_power_action.put(power, new int[]{1, 1}); item_power_action.put(power, power_arguments);
} }
} catch (Exception e) { } catch (Exception e) {

Loading…
Cancel
Save