Browse Source

Rune skill adjusts parsed

combat-2
MagicBot 7 months ago
parent
commit
5c20fca28a
  1. 10
      src/engine/objects/ItemTemplate.java

10
src/engine/objects/ItemTemplate.java

@ -510,10 +510,14 @@ public class ItemTemplate { @@ -510,10 +510,14 @@ public class ItemTemplate {
JSONObject skill = (JSONObject) skillEntry;
String typeString = (String) skill.get("skill_type");
JSONArray adjArray = (JSONArray) skill.get("skill_adjusts");
int[] adjusts = {((Long) adjArray.get(0)).intValue(), ((Long) adjArray.get(1)).intValue()};
rune_skill_adj.put(typeString, adjusts);
}
for (Object adjustList : adjArray) {
JSONArray adjustEntry = (JSONArray) adjustList;
int[] adjust = {((Long) adjustEntry.get(0)).intValue(), ((Long) adjustEntry.get(1)).intValue()};
rune_skill_adj.put(typeString, adjust);
}
}
JSONArray attr_adj_json = (JSONArray) jsonObject.get("rune_attr_adj");
for (Object attributeEntry : attr_adj_json) {

Loading…
Cancel
Save