|
|
|
@ -408,12 +408,11 @@ public class ItemTemplate {
@@ -408,12 +408,11 @@ public class ItemTemplate {
|
|
|
|
|
|
|
|
|
|
if (item_type.equals(Enum.ItemType.RUNE)) { |
|
|
|
|
|
|
|
|
|
JSONObject attr_adj_json = (JSONObject) jsonObject.get("rune_attr_adj"); |
|
|
|
|
JSONArray attr_adj_json = (JSONArray) jsonObject.get("rune_attr_adj"); |
|
|
|
|
|
|
|
|
|
for (Object attributes : attr_adj_json) { |
|
|
|
|
attributes.toString(); |
|
|
|
|
|
|
|
|
|
for (Object key : attr_adj_json.keySet()) { |
|
|
|
|
Enum.AttributeType attributeType = Enum.AttributeType.valueOf((String) key); |
|
|
|
|
int value = ((Long) resist_json.get(key)).intValue(); |
|
|
|
|
rune_attr_adj.put(attributeType, value); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|