|
|
@ -111,7 +111,6 @@ public class ItemTemplate { |
|
|
|
if (skills_used instanceof JSONArray) |
|
|
|
if (skills_used instanceof JSONArray) |
|
|
|
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); |
|
|
|
item_skill_used.add(characterSkill); |
|
|
|
item_skill_used.add(characterSkill); |
|
|
|
} |
|
|
|
} |
|
|
@ -121,7 +120,6 @@ public class ItemTemplate { |
|
|
|
if (mastery_used instanceof JSONArray) |
|
|
|
if (mastery_used instanceof JSONArray) |
|
|
|
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); |
|
|
|
item_skill_mastery_used.add(masterySkill); |
|
|
|
item_skill_mastery_used.add(masterySkill); |
|
|
|
} |
|
|
|
} |
|
|
|