Browse Source

Proper parsing of power grants

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

5
src/engine/objects/ItemTemplate.java

@ -354,8 +354,9 @@ public class ItemTemplate { @@ -354,8 +354,9 @@ public class ItemTemplate {
if (powerGrantsArray.isEmpty() == false) {
for (Object grantEntry : powerGrantsArray) {
JSONObject powerGrant = (JSONObject) grantEntry;
for (Object grantArrayEntry : powerGrantsArray) {
JSONObject powerGrantEntry = (JSONObject) grantArrayEntry;
JSONObject powerGrant = (JSONObject) powerGrantEntry.get("granted_powers");
for (Object key : powerGrant.keySet()) {
String powerString = (String) key;

Loading…
Cancel
Save