Browse Source

Test

combat-2
MagicBot 7 months ago
parent
commit
83dd47d22a
  1. 4
      src/engine/objects/ItemTemplate.java

4
src/engine/objects/ItemTemplate.java

@ -467,12 +467,12 @@ public class ItemTemplate {
JSONObject rune_speed_json = (JSONObject) jsonObject.get("rune_speed"); JSONObject rune_speed_json = (JSONObject) jsonObject.get("rune_speed");
/* for (Object key : rune_speed_json.keySet()) { for (Object key : rune_speed_json.keySet()) {
Enum.MovementType movementType = Enum.MovementType.valueOf((String) key); Enum.MovementType movementType = Enum.MovementType.valueOf((String) key);
float speed = ((Double) rune_speed_json.get(key)).floatValue(); float speed = ((Double) rune_speed_json.get(key)).floatValue();
rune_speed.put(movementType, speed); rune_speed.put(movementType, speed);
} }
*/
rune_group_type = ((Long) jsonObject.get("rune_group_type")).intValue(); rune_group_type = ((Long) jsonObject.get("rune_group_type")).intValue();
rune_group_is_faction = ((Boolean) jsonObject.get("rune_group_is_faction")); rune_group_is_faction = ((Boolean) jsonObject.get("rune_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"));

Loading…
Cancel
Save