Browse Source

Parsing grants

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

2
src/engine/objects/ItemTemplate.java

@ -279,6 +279,8 @@ public class ItemTemplate { @@ -279,6 +279,8 @@ public class ItemTemplate {
}
JSONArray powerGrants = (JSONArray) jsonObject.get("item_power_grant");
if (powerGrants.isEmpty() == false)
for (Object o : powerGrants) {
JSONObject powerGrantEntry = (JSONObject) o;
String power_type = (String) powerGrantEntry.get("power_type");

Loading…
Cancel
Save