forked from MagicBane/Server
More rune parsing
This commit is contained in:
@@ -83,9 +83,6 @@ public class ItemTemplate {
|
||||
public HashMap<String, int[]> item_power_action = new HashMap<>();
|
||||
public HashMap<Enum.ResourceType, Integer> item_resource_cost = new HashMap<>();
|
||||
public int modTable;
|
||||
|
||||
// Deed related fields
|
||||
|
||||
public int deed_type;
|
||||
public int deed_furniture_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> skill_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) {
|
||||
|
||||
@@ -417,6 +417,9 @@ public class ItemTemplate {
|
||||
|
||||
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");
|
||||
|
||||
for (Object attributeEntry : attr_adj_json) {
|
||||
|
||||
Reference in New Issue
Block a user