|
|
@ -83,9 +83,6 @@ public class ItemTemplate { |
|
|
|
public HashMap<String, int[]> item_power_action = new HashMap<>(); |
|
|
|
public HashMap<String, int[]> item_power_action = new HashMap<>(); |
|
|
|
public HashMap<Enum.ResourceType, Integer> item_resource_cost = new HashMap<>(); |
|
|
|
public HashMap<Enum.ResourceType, Integer> item_resource_cost = new HashMap<>(); |
|
|
|
public int modTable; |
|
|
|
public int modTable; |
|
|
|
|
|
|
|
|
|
|
|
// Deed related fields
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public int deed_type; |
|
|
|
public int deed_type; |
|
|
|
public int deed_furniture_id; |
|
|
|
public int deed_furniture_id; |
|
|
|
public int deed_target_id; |
|
|
|
public int deed_target_id; |
|
|
@ -102,6 +99,9 @@ public class ItemTemplate { |
|
|
|
public HashMap<String, Integer> rune_skill_grant = new HashMap<>(); |
|
|
|
public HashMap<String, Integer> rune_skill_grant = new HashMap<>(); |
|
|
|
public HashMap<String, Integer> skill_granted_skills = new HashMap<>(); |
|
|
|
public HashMap<String, Integer> skill_granted_skills = new HashMap<>(); |
|
|
|
public HashMap<String, Integer> power_granted_skills = new HashMap<>(); |
|
|
|
public HashMap<String, Integer> power_granted_skills = new HashMap<>(); |
|
|
|
|
|
|
|
public String rune_type; |
|
|
|
|
|
|
|
public String rune_sub_type; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public ItemTemplate(JSONObject jsonObject) { |
|
|
|
public ItemTemplate(JSONObject jsonObject) { |
|
|
|
|
|
|
|
|
|
|
@ -417,6 +417,9 @@ public class ItemTemplate { |
|
|
|
|
|
|
|
|
|
|
|
if (item_type.equals(Enum.ItemType.RUNE)) { |
|
|
|
if (item_type.equals(Enum.ItemType.RUNE)) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
rune_type = (String) jsonObject.get("rune_type"); |
|
|
|
|
|
|
|
rune_sub_type = (String) jsonObject.get("rune_sub_type"); |
|
|
|
|
|
|
|
|
|
|
|
JSONArray attr_adj_json = (JSONArray) jsonObject.get("rune_attr_adj"); |
|
|
|
JSONArray attr_adj_json = (JSONArray) jsonObject.get("rune_attr_adj"); |
|
|
|
|
|
|
|
|
|
|
|
for (Object attributeEntry : attr_adj_json) { |
|
|
|
for (Object attributeEntry : attr_adj_json) { |
|
|
|