Mercurial > wow > itemauditor
diff Modules/QuickAuctions.lua @ 77:a8fc802b42ba
Changed the QuickAuctions decider to consider the number already owned and only calculate based on what needs to be crated.
Fixed the QuickAuctions decider to return the number of items to be created instead of the number of times to create. This makes a difference with things like Runescroll of Fortitude where 5 are created at once.
author | Asa Ayers <Asa.Ayers@Gmail.com> |
---|---|
date | Sun, 01 Aug 2010 08:42:29 -0700 |
parents | aaf9a155995b |
children | 88a42e00b866 |
line wrap: on
line diff
--- a/Modules/QuickAuctions.lua Sun Aug 01 08:16:08 2010 -0700 +++ b/Modules/QuickAuctions.lua Sun Aug 01 08:42:29 2010 -0700 @@ -98,16 +98,16 @@ local threshold, postCap, perAuction = QAAPI:GetGroupConfig(QAGroup) local stackSize = postCap * perAuction - stackSize = stackSize / GetTradeSkillNumMade(data.tradeSkillIndex) - -- bonus stackSize = ceil(stackSize * (1+ItemAuditor.db.char.qa_extra)) + local target = stackSize + stackSize = stackSize - currentCount local newThreshold = ((data.cost*stackSize) + currentInvested) / (currentCount + stackSize) newThreshold = calculateQAThreshold(newThreshold) if newThreshold < data.price then - return stackSize + return target end return -1