|
|
@ -227,7 +227,7 @@ public class ItemTemplate { |
|
|
|
if (weapon_damage.isEmpty() == false) |
|
|
|
if (weapon_damage.isEmpty() == false) |
|
|
|
for (Object o : weapon_damage) { |
|
|
|
for (Object o : weapon_damage) { |
|
|
|
JSONObject damage_entry = (JSONObject) o; |
|
|
|
JSONObject damage_entry = (JSONObject) o; |
|
|
|
Enum.DamageType damageType = Enum.DamageType.valueOf(((String) damage_entry.get("damage_type"))); |
|
|
|
Enum.DamageType damageType = Enum.DamageType.GetDamageType(((String) damage_entry.get("damage_type"))); |
|
|
|
int min = ((Long) damage_entry.get("damage_min")).intValue(); |
|
|
|
int min = ((Long) damage_entry.get("damage_min")).intValue(); |
|
|
|
int max = ((Long) damage_entry.get("damage_max")).intValue(); |
|
|
|
int max = ((Long) damage_entry.get("damage_max")).intValue(); |
|
|
|
int[] minMax = {min, max}; |
|
|
|
int[] minMax = {min, max}; |
|
|
|