Browse Source

Parsing skill_granted_skills

combat-2
MagicBot 7 months ago
parent
commit
8afa00f885
  1. 6
      src/engine/objects/ItemTemplate.java

6
src/engine/objects/ItemTemplate.java

@ -439,6 +439,12 @@ public class ItemTemplate { @@ -439,6 +439,12 @@ public class ItemTemplate {
JSONArray skill_granted_array = (JSONArray) skill_granted.get("skill_granted_skills");
for (Object oo : skill_granted_array) {
JSONArray skill_entry = (JSONArray) oo;
typeString = (String) skill_entry.get(0);
skill_level = ((Long) skill_entry.get(1)).intValue();
skill_granted_skills.put(typeString, skill_level);
}
}
}

Loading…
Cancel
Save