public static ItemInfo GetItemInfo(int hash) { string table = "DestinyInventoryItemDefinition"; string data = ManifestAccess.ReadData(table, hash); string desc = "", name = "", icon = "", iconWM = "", itemType = "", tierType = "", gearType = ""; JObject info = JObject.Parse(data); desc = (string)info["displayProperties"]["description"]; name = (string)info["displayProperties"]["name"]; icon = imgRoot + (string)info["displayProperties"]["icon"]; itemType = (string)info["itemTypeDisplayName"]; tierType = (string)info["inventory"]["tierTypeName"]; gearType = imgRoot + (string)info["screenshot"]; if (info["iconWatermark"] == null) { iconWM = "none"; //iconWM = imgRoot + (string)info[""]["quality"]["displayVersionWatermarkIcons"]; } else { iconWM = imgRoot + (string)info["iconWatermark"]; } ItemInfo itemInfo = new ItemInfo(desc, name, icon, iconWM, itemType, tierType, gearType); return(itemInfo); }
public static string GetBucketInfo(int hash) { string table = "DestinyInventoryBucketDefinition"; string data = ManifestAccess.ReadData(table, hash); JObject info = JObject.Parse(data); string type = (string)info["displayProperties"]["name"]; return(type); }