forked from MagicBane/Server
Weapon field parsing
This commit is contained in:
@@ -167,7 +167,7 @@ public class ItemTemplate {
|
||||
|
||||
JSONObject weapon_damage = (JSONObject) jsonObject.get("weapon_damage");
|
||||
item_weapon_damage_type = Enum.DamageType.valueOf((String) weapon_damage.get("damage_type"));
|
||||
item_weapon_damage_min = ((Long) weapon_damage.get("damage_mi")).intValue();
|
||||
item_weapon_damage_min = ((Long) weapon_damage.get("damage_min")).intValue();
|
||||
item_weapon_damage_max = ((Long) weapon_damage.get("damage_max")).intValue();
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user