Browse Source

Fix to rune_group parsing

combat-2
MagicBot 7 months ago
parent
commit
587ac802de
  1. 6
      src/engine/objects/ItemTemplate.java

6
src/engine/objects/ItemTemplate.java

@ -473,8 +473,10 @@ public class ItemTemplate {
rune_speed.put(movementType, speed); rune_speed.put(movementType, speed);
} }
rune_group_type = ((Long) jsonObject.get("rune_group_type")).intValue(); JSONObject rune_group = (JSONObject) jsonObject.get("rune_group");
rune_group_is_faction = ((Boolean) jsonObject.get("rune_group_is_faction"));
rune_group_type = ((Long) rune_group.get("group_type")).intValue();
rune_group_is_faction = ((Boolean) rune_group.get("group_is_faction"));
rune_group_is_guild = ((Boolean) jsonObject.get("rune_group_is_guild")); rune_group_is_guild = ((Boolean) jsonObject.get("rune_group_is_guild"));
rune_dsc = (String) jsonObject.get("rune_dsc"); rune_dsc = (String) jsonObject.get("rune_dsc");
rune_fx_txt = (String) jsonObject.get("rune_fx_txt"); rune_fx_txt = (String) jsonObject.get("rune_fx_txt");

Loading…
Cancel
Save