Mercurial > wow > itemauditor
diff Core.lua @ 35:aaa716c93fb2 v0.1.1
Added the ability to change the price of an item. You can click the Total Invested or the Invested Each to change the value.
author | Asa Ayers <Asa.Ayers@Gmail.com> |
---|---|
date | Sun, 18 Jul 2010 16:43:03 -0700 |
parents | f99b9602bdab |
children | 9bd18fce8498 |
line wrap: on
line diff
--- a/Core.lua Sun Jul 18 16:42:38 2010 -0700 +++ b/Core.lua Sun Jul 18 16:43:03 2010 -0700 @@ -248,7 +248,8 @@ self.db.factionrealm.item_account[link] = nil link = self:GetSafeLink(link) if link ~= nil then - self.items[link] = nil + local item = addon:GetItem(link) + item.invested = 0 else self:Debug('Failed to convert link' .. tostring(link)) end @@ -301,6 +302,7 @@ if realLink ~= nil then addon:UpdateQAThreshold(realLink) end + UpdateInvestedData() end @@ -356,5 +358,5 @@ end end - return 0, 0, 0 + return 0, 0, Altoholic:GetItemCount(ItemAuditor:GetIDFromLink(link)) end