Mercurial > wow > itemauditor
comparison Modules/Events.lua @ 53:c6c98fc1be8e release 2010-07-21
Fixed a bug where if you attached money and items to a piece of mail it would count all of the money as postage.
author | Asa Ayers <Asa.Ayers@Gmail.com> |
---|---|
date | Wed, 21 Jul 2010 22:38:55 -0700 |
parents | 9c95158236d1 |
children | e7d287cc3b02 |
comparison
equal
deleted
inserted
replaced
52:9c95158236d1 | 53:c6c98fc1be8e |
---|---|
86 attachedItems[newLink].stacks = attachedItems[newLink].stacks + 1 | 86 attachedItems[newLink].stacks = attachedItems[newLink].stacks + 1 |
87 attachedItems[newLink].count = attachedItems[newLink].count + itemCount | 87 attachedItems[newLink].count = attachedItems[newLink].count + itemCount |
88 attachedItems[newLink].price = 0 -- This is a placeholder for below. | 88 attachedItems[newLink].price = 0 -- This is a placeholder for below. |
89 end | 89 end |
90 end | 90 end |
91 local pricePerStack = GetSendMailPrice() / totalStacks | |
92 for link, data in pairs(attachedItems) do | 91 for link, data in pairs(attachedItems) do |
93 data.price = pricePerStack * data.stacks | 92 data.price = 30 * data.stacks |
94 end | 93 end |
95 | 94 |
96 if self.mailOutbox.COD > 0 and skipCODTracking then | 95 if self.mailOutbox.COD > 0 and skipCODTracking then |
97 | 96 |
98 elseif self.mailOutbox.COD > 0 then | 97 elseif self.mailOutbox.COD > 0 then |