diff Modules/Tooltip.lua @ 8:0271e781b154

Working on converting the database to store items as links instead of names.
author Asa Ayers <Asa.Ayers@Gmail.com>
date Wed, 23 Jun 2010 23:47:48 -0700
parents bbcf81868171
children c79ede3c7b82
line wrap: on
line diff
--- a/Modules/Tooltip.lua	Tue Jun 08 11:19:16 2010 -0700
+++ b/Modules/Tooltip.lua	Wed Jun 23 23:47:48 2010 -0700
@@ -8,10 +8,10 @@
 		return;
 	end
 
-	local itemName, itemLink, itemRarity, itemLevel, itemMinLevel, itemType, _, _, _, _, itemVendorPrice = GetItemInfo (link);
+	-- local itemName, itemLink, itemRarity, itemLevel, itemMinLevel, itemType, _, _, _, _, itemVendorPrice = GetItemInfo (link);
 	-- local _, _, Color, Ltype, Id, Enchant, Gem1, Gem2, Gem3, Gem4, Suffix, Unique, LinkLvl, Name = string.find(link, "|?c?f?f?(%x*)|?H?([^:]*):?(%d+):?(%d*):?(%d*):?(%d*):?(%d*):?(%d*):?(%-?%d*):?(%-?%d*):?(%d*)|?h?%[?([^%[%]]*)%]?|?h?|?r?")
 
-	local investedTotal, investedPerItem, count = ItemAuditor:GetItemCost(itemName)
+	local investedTotal, investedPerItem, count = ItemAuditor:GetItemCost(link)
 	
 	local AHCut = 0.05
 	local keep = 1 - AHCut