|
|
@ -80,7 +80,6 @@ public class ItemTemplate { |
|
|
|
// Parsing an enum
|
|
|
|
// Parsing an enum
|
|
|
|
|
|
|
|
|
|
|
|
item_type = Enum.ItemType.valueOf((String) jsonObject.get("item_type")); |
|
|
|
item_type = Enum.ItemType.valueOf((String) jsonObject.get("item_type")); |
|
|
|
|
|
|
|
|
|
|
|
item_eq_slots_value = ((Long) jsonObject.get("item_eq_slots_value")).intValue(); |
|
|
|
item_eq_slots_value = ((Long) jsonObject.get("item_eq_slots_value")).intValue(); |
|
|
|
item_eq_slots_type = (boolean) jsonObject.get("item_eq_slots_type"); |
|
|
|
item_eq_slots_type = (boolean) jsonObject.get("item_eq_slots_type"); |
|
|
|
|
|
|
|
|
|
|
@ -108,7 +107,7 @@ public class ItemTemplate { |
|
|
|
|
|
|
|
|
|
|
|
Object skills_used = jsonObject.get("item_skill_used"); |
|
|
|
Object skills_used = jsonObject.get("item_skill_used"); |
|
|
|
|
|
|
|
|
|
|
|
if (skills_used instanceof JSONArray) |
|
|
|
if ((int) skills_used != 0) |
|
|
|
for (Object o : (JSONArray) skills_used) { |
|
|
|
for (Object o : (JSONArray) skills_used) { |
|
|
|
String skilString = ((String) o).replaceAll("\\s", ""); |
|
|
|
String skilString = ((String) o).replaceAll("\\s", ""); |
|
|
|
Enum.CharacterSkills characterSkill = Enum.CharacterSkills.valueOf(skilString); |
|
|
|
Enum.CharacterSkills characterSkill = Enum.CharacterSkills.valueOf(skilString); |
|
|
@ -117,7 +116,7 @@ public class ItemTemplate { |
|
|
|
|
|
|
|
|
|
|
|
Object mastery_used = jsonObject.get("item_skill_mastery_used"); |
|
|
|
Object mastery_used = jsonObject.get("item_skill_mastery_used"); |
|
|
|
|
|
|
|
|
|
|
|
if (mastery_used instanceof JSONArray) |
|
|
|
if ((int) mastery_used != 0) |
|
|
|
for (Object o : (JSONArray) mastery_used) { |
|
|
|
for (Object o : (JSONArray) mastery_used) { |
|
|
|
String masteryString = ((String) o).replaceAll("\\s", ""); |
|
|
|
String masteryString = ((String) o).replaceAll("\\s", ""); |
|
|
|
Enum.CharacterSkills masterySkill = Enum.CharacterSkills.valueOf(masteryString); |
|
|
|
Enum.CharacterSkills masterySkill = Enum.CharacterSkills.valueOf(masteryString); |
|
|
|