Mercurial > wow > prospect-me
comparison ProspectMe_Tooltip.lua @ 41:55da4d54a2de Prospect Me 2
Fix for a bug in tooltip text display
author | Vynn <mischivin@gmail.com> |
---|---|
date | Fri, 11 Nov 2016 12:10:43 -0500 |
parents | b9c2260bf1b4 |
children | 35c84e420f4a |
comparison
equal
deleted
inserted
replaced
40:97fe62d4385d | 41:55da4d54a2de |
---|---|
75 end | 75 end |
76 if item then | 76 if item then |
77 if ProspectMe.Results[item] then | 77 if ProspectMe.Results[item] then |
78 local price = ProspectMe.GetItemValue(item) | 78 local price = ProspectMe.GetItemValue(item) |
79 local lifetimeReturn = ProspectMe.GetReturn(item) | 79 local lifetimeReturn = ProspectMe.GetReturn(item) |
80 local subclass = select(7,GetItemInfo(item)) | |
80 --NumofEachQuality, Percent of Each Quality | 81 --NumofEachQuality, Percent of Each Quality |
81 self:AddLine(" ") | 82 self:AddLine(" ") |
82 self:AddLine("Prospect Me",0.5,1,0.5) | 83 self:AddLine("Prospect Me",0.5,1,0.5) |
83 self:AddLine("Times Processed: " .. ProspectMe.Results[item].TimesProspected) | 84 self:AddLine("Times Processed: " .. ProspectMe.Results[item].TimesProspected) |
84 if spellid then | 85 if spellid then |
89 end | 90 end |
90 if spellid == 225902 or spellid == 225904 then | 91 if spellid == 225902 or spellid == 225904 then |
91 self:AddDoubleLine("Cost to Mass Prospect: " .. ProspectMe.FormatPrice(ctp), " Average Return: " .. ProspectMe.FormatPrice(lifetimeReturn)) | 92 self:AddDoubleLine("Cost to Mass Prospect: " .. ProspectMe.FormatPrice(ctp), " Average Return: " .. ProspectMe.FormatPrice(lifetimeReturn)) |
92 elseif spellid == 210116 then | 93 elseif spellid == 210116 then |
93 self:AddDoubleLine("Cost to Mass Mill: " .. ProspectMe.FormatPrice(ctp), " Average Return: " .. ProspectMe.FormatPrice(lifetimeReturn)) | 94 self:AddDoubleLine("Cost to Mass Mill: " .. ProspectMe.FormatPrice(ctp), " Average Return: " .. ProspectMe.FormatPrice(lifetimeReturn)) |
94 elseif select(7,GetItemInfo(item)) == ORE then | 95 elseif subclass == ORE then |
95 self:AddDoubleLine("Cost to Prospect: " .. ProspectMe.FormatPrice(ctp), " Average Return: " .. ProspectMe.FormatPrice(lifetimeReturn)) | 96 self:AddDoubleLine("Cost to Prospect: " .. ProspectMe.FormatPrice(ctp), " Average Return: " .. ProspectMe.FormatPrice(lifetimeReturn)) |
96 elseif select(7,GetItemInfo(item)) == HERB then | 97 elseif subclass == HERB then |
97 self:AddDoubleLine("Cost to Mill: " .. ProspectMe.FormatPrice(ctp), " Average Return: " .. ProspectMe.FormatPrice(lifetimeReturn)) | 98 self:AddDoubleLine("Cost to Mill: " .. ProspectMe.FormatPrice(ctp), " Average Return: " .. ProspectMe.FormatPrice(lifetimeReturn)) |
98 else | 99 else |
99 self:AddDoubleLine("Cost to Process: " .. ProspectMe.FormatPrice(ctp), " Average Return: " .. ProspectMe.FormatPrice(lifetimeReturn)) | 100 self:AddDoubleLine("Cost to Process: " .. ProspectMe.FormatPrice(ctp), " Average Return: " .. ProspectMe.FormatPrice(lifetimeReturn)) |
100 end | 101 end |
101 if lifetimeReturn-(ctp) > 0 then | 102 if lifetimeReturn-(ctp) > 0 then |