forked from MagicBane/Server
More parsing work.
This commit is contained in:
@@ -410,9 +410,12 @@ public class ItemTemplate {
|
||||
|
||||
JSONArray attr_adj_json = (JSONArray) jsonObject.get("rune_attr_adj");
|
||||
|
||||
for (Object attributes : attr_adj_json) {
|
||||
attributes.toString();
|
||||
|
||||
for (Object attributeEntry : 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_attr_adj.put(attributeType, attributeValue);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user