Browse Source

Proper parsing of power grants

combat-2
MagicBot 8 months ago
parent
commit
5a1027c611
  1. 4
      src/engine/objects/ItemTemplate.java

4
src/engine/objects/ItemTemplate.java

@ -358,6 +358,10 @@ public class ItemTemplate {
JSONObject powerGrantEntry = (JSONObject) grantArrayEntry; JSONObject powerGrantEntry = (JSONObject) grantArrayEntry;
JSONArray powerGrants = (JSONArray) powerGrantEntry.get("power_granted_powers"); JSONArray powerGrants = (JSONArray) powerGrantEntry.get("power_granted_powers");
for (Object grantedPowerEntry : powerGrants) {
JSONObject grantedPower = (JSONObject) grantedPowerEntry;
}
} }
} }

Loading…
Cancel
Save