Browse Source

Rename to conform

combat-2
MagicBot 8 months ago
parent
commit
1603c8d8e9
  1. 9
      src/engine/objects/ItemTemplate.java

9
src/engine/objects/ItemTemplate.java

@ -408,12 +408,11 @@ public class ItemTemplate {
if (item_type.equals(Enum.ItemType.RUNE)) { 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);
} }
} }

Loading…
Cancel
Save