Browse Source

More parsing work

combat-2
MagicBot 8 months ago
parent
commit
d39790ab4c
  1. 7
      src/engine/objects/ItemTemplate.java

7
src/engine/objects/ItemTemplate.java

@ -443,7 +443,12 @@ public class ItemTemplate { @@ -443,7 +443,12 @@ public class ItemTemplate {
if (item_type.equals(Enum.ItemType.RUNE)) {
rune_type = (String) jsonObject.get("rune_type");
rune_sub_type = (String) jsonObject.get("rune_sub_type");
Object subType = jsonObject.get("rune_sub_type");
if (subType instanceof String)
rune_sub_type = (String) subType;
rune_is_standard_character_creation = ((Boolean) jsonObject.get("rune_is_standard_character_creation"));
rune_creation_cost = ((Long) jsonObject.get("rune_creation_cost")).intValue();
rune_rank = ((Long) jsonObject.get("rune_rank")).intValue();

Loading…
Cancel
Save