forked from MagicBane/Server
Refactor out item useID
This commit is contained in:
@@ -84,6 +84,7 @@ public class ItemTemplate {
|
||||
public static HashMap<String, Integer> item_power_grant = new HashMap<>();
|
||||
public HashMap<String, int[]> item_power_action = new HashMap<>();
|
||||
public HashMap<Enum.ResourceType, Integer> item_resource_cost = new HashMap<>();
|
||||
public int deed_structure_id;
|
||||
|
||||
public ItemTemplate(JSONObject jsonObject) {
|
||||
|
||||
@@ -368,6 +369,12 @@ public class ItemTemplate {
|
||||
item_resource_cost.put(resource_type, resource_value);
|
||||
}
|
||||
|
||||
// Deed related fields
|
||||
|
||||
if (item_type.equals(Enum.ItemType.DEED)) {
|
||||
deed_structure_id = ((Long) jsonObject.get("deed_structure_id")).intValue();
|
||||
}
|
||||
|
||||
} catch (Exception e) {
|
||||
Logger.error(e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user