Mercurial > wow > inventory
diff Classes/ContainerItem.class.lua @ 111:41f0689dfda1
This implementation of vendor buying did not work well. Too many customizations were needed that made the code hard to read and understand and eventually it was found that vendor buying should be based on refill target, not local stock. The mover/refiller is not meant for this, we should just do this somewhere else.
author | Zerotorescue |
---|---|
date | Fri, 14 Jan 2011 23:31:12 +0100 |
parents | 67bd5057ecb7 |
children | 239e25a058c7 |
line wrap: on
line diff
--- a/Classes/ContainerItem.class.lua Fri Jan 14 23:25:05 2011 +0100 +++ b/Classes/ContainerItem.class.lua Fri Jan 14 23:31:12 2011 +0100 @@ -19,12 +19,11 @@ return self; end -function addon.ContainerItem:AddLocation(container, slot, count, price) +function addon.ContainerItem:AddLocation(container, slot, count) table.insert(self.locations, { ["container"] = container, ["slot"] = slot, ["count"] = count, - ["price"] = price, }); -- -1 indicates unlimited supply @@ -38,11 +37,3 @@ return true; end - -function addon.ContainerItem:GetVendorPrice() - for _, loc in pairs(self.locations) do - if loc.price then - return loc.price; - end - end -end