comparison ProspectMe_Tooltip.lua @ 42:35c84e420f4a Prospect Me 2

Further refinements to the tooltip text.
author Vynn <mischivin@gmail.com>
date Fri, 11 Nov 2016 13:26:19 -0500
parents 55da4d54a2de
children a35539b8e151
comparison
equal deleted inserted replaced
41:55da4d54a2de 42:35c84e420f4a
79 local lifetimeReturn = ProspectMe.GetReturn(item) 79 local lifetimeReturn = ProspectMe.GetReturn(item)
80 local subclass = select(7,GetItemInfo(item)) 80 local subclass = select(7,GetItemInfo(item))
81 --NumofEachQuality, Percent of Each Quality 81 --NumofEachQuality, Percent of Each Quality
82 self:AddLine(" ") 82 self:AddLine(" ")
83 self:AddLine("Prospect Me",0.5,1,0.5) 83 self:AddLine("Prospect Me",0.5,1,0.5)
84 self:AddLine("Times Processed: " .. ProspectMe.Results[item].TimesProspected) 84 if spellid == 225902 or spellid == 225904 or subclass == ORE then
85 self:AddLine("Times Prospected: " .. ProspectMe.Results[item].TimesProspected)
86 elseif spellid == 210116 or subclass == HERB then
87 self:AddLine("Times Milled: " .. ProspectMe.Results[item].TimesProspected)
88 else
89 self:AddLine("Times Processed: " .. ProspectMe.Results[item].TimesProspected)
90 end
85 if spellid then 91 if spellid then
86 ctp = price * 20 92 ctp = price * 20
87 lifetimeReturn = lifetimeReturn * 4 93 lifetimeReturn = lifetimeReturn * 4
88 else 94 else
89 ctp = price * 5 95 ctp = price * 5