|
|
|
@ -418,6 +418,16 @@ public class ItemTemplate {
@@ -418,6 +418,16 @@ public class ItemTemplate {
|
|
|
|
|
rune_attr_adj.put(attributeType, attributeValue); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
JSONArray max_attr_adj_json = (JSONArray) jsonObject.get("rune_max_attr_adj"); |
|
|
|
|
|
|
|
|
|
for (Object attributeEntry : max_attr_adj_json) { |
|
|
|
|
JSONObject attribute = (JSONObject) attributeEntry; |
|
|
|
|
String typeString = (String) attribute.get("attr_type"); |
|
|
|
|
Enum.AttributeType attributeType = Enum.AttributeType.valueOf(typeString); |
|
|
|
|
int attributeValue = ((Long) attribute.get("attr_value")).intValue(); |
|
|
|
|
rune_max_attr_adj.put(attributeType, attributeValue); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|