Quantcast

Cache the thing

Darthpred [10-19-16 - 17:21]
Cache the thing
Filename
ElvUI_SLE/core/toolkit.lua
ElvUI_SLE/modules/Armory/CharacterArmory/CharacterArmory.lua
ElvUI_SLE/modules/Armory/InspectArmory/InspectArmory.lua
diff --git a/ElvUI_SLE/core/toolkit.lua b/ElvUI_SLE/core/toolkit.lua
index 2049617..c6cd949 100644
--- a/ElvUI_SLE/core/toolkit.lua
+++ b/ElvUI_SLE/core/toolkit.lua
@@ -68,6 +68,7 @@ T.GetInventorySlotInfo = GetInventorySlotInfo
 T.GetInventoryItemDurability = GetInventoryItemDurability
 T.GetInventoryItemQuality = GetInventoryItemQuality
 T.GetItemInfo = GetItemInfo
+T.GetDetailedItemLevelInfo = GetDetailedItemLevelInfo
 T.GetBuybackItemLink = GetBuybackItemLink
 T.GetItemIcon = GetItemIcon
 T.GetItemCooldown = GetItemCooldown
diff --git a/ElvUI_SLE/modules/Armory/CharacterArmory/CharacterArmory.lua b/ElvUI_SLE/modules/Armory/CharacterArmory/CharacterArmory.lua
index 2f463a7..cfdce20 100644
--- a/ElvUI_SLE/modules/Armory/CharacterArmory/CharacterArmory.lua
+++ b/ElvUI_SLE/modules/Armory/CharacterArmory/CharacterArmory.lua
@@ -545,6 +545,7 @@ function CA:Update_Gear()
 	for _, SlotName in T.pairs(T.type(self.GearUpdated) == 'table' and self.GearUpdated or Info.Armory_Constants.GearList) do
 		Slot = self[SlotName]
 		ItemLink = T.GetInventoryItemLink('player', Slot.ID)
+		-- if ItemLink then local DaName = GetItemInfo(ItemLink); print(DaName, GetDetailedItemLevelInfo(ItemLink)) end
 		ErrorDetected = nil

 		if not (SlotName == 'ShirtSlot' or SlotName == 'TabardSlot') then
@@ -669,7 +670,7 @@ function CA:Update_Gear()
 					end

 					_, _, ItemRarity, _, _, _, _, _, ItemType, ItemTexture = T.GetItemInfo(ItemLink)
-					TrueItemLevel, _, BasicItemLevel = GetDetailedItemLevelInfo(ItemLink)
+					TrueItemLevel, _, BasicItemLevel = T.GetDetailedItemLevelInfo(ItemLink)
 					R, G, B = T.GetItemQualityColor(ItemRarity)

 					--<< Enchant Parts >>--
diff --git a/ElvUI_SLE/modules/Armory/InspectArmory/InspectArmory.lua b/ElvUI_SLE/modules/Armory/InspectArmory/InspectArmory.lua
index 4e109a0..6bf687f 100644
--- a/ElvUI_SLE/modules/Armory/InspectArmory/InspectArmory.lua
+++ b/ElvUI_SLE/modules/Armory/InspectArmory/InspectArmory.lua
@@ -1834,7 +1834,7 @@ function IA:InspectFrame_DataSetting(DataTable)
 						end

 						_, _, ItemRarity, _, _, _, _, _, ItemType, ItemTexture = T.GetItemInfo(Slot.Link)
-						TrueItemLevel, _, BasicItemLevel = GetDetailedItemLevelInfo(Slot.Link)
+						TrueItemLevel, _, BasicItemLevel = T.GetDetailedItemLevelInfo(Slot.Link)
 						R, G, B = T.GetItemQualityColor(ItemRarity)

 						ItemUpgradeID = Slot.Link:match(":(%d+)\124h%[")