|
|
|
@ -128,6 +128,7 @@ public class ItemTemplate {
@@ -128,6 +128,7 @@ public class ItemTemplate {
|
|
|
|
|
public boolean rune_renderable = false; |
|
|
|
|
public int rune_natural_power_attack; |
|
|
|
|
public HashMap<String, String> rune_sparse_data = new HashMap<>(); |
|
|
|
|
public HashMap<String, int[]> rune_skill_adj = new HashMap<>(); |
|
|
|
|
|
|
|
|
|
public ItemTemplate(JSONObject jsonObject) { |
|
|
|
|
|
|
|
|
@ -503,6 +504,16 @@ public class ItemTemplate {
@@ -503,6 +504,16 @@ public class ItemTemplate {
|
|
|
|
|
rune_sparse_data.put(sparseType, sparseValue.toString()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
JSONArray skill_adj_json = (JSONArray) jsonObject.get("rune_skill_adj"); |
|
|
|
|
|
|
|
|
|
for (Object skillEntry : skill_adj_json) { |
|
|
|
|
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); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
JSONArray attr_adj_json = (JSONArray) jsonObject.get("rune_attr_adj"); |
|
|
|
|
|
|
|
|
|
for (Object attributeEntry : attr_adj_json) { |
|
|
|
|