# HG changeset patch # User Asa Ayers # Date 1280677349 25200 # Node ID a8fc802b42ba967fff12800bed831e18b147fe09 # Parent 574c154d24abbd6dc6addc4c4eca0bf641fd1e92 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. diff -r 574c154d24ab -r a8fc802b42ba CHANGELOG.txt --- a/CHANGELOG.txt Sun Aug 01 08:16:08 2010 -0700 +++ b/CHANGELOG.txt Sun Aug 01 08:42:29 2010 -0700 @@ -1,6 +1,8 @@ 2010-08-01 Asa Ayers - Fixed the tooltip so that it is green if the auction price exactly matches your threshold. +- 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. 2010-07-29 Asa Ayers diff -r 574c154d24ab -r a8fc802b42ba Modules/Crafting.lua --- a/Modules/Crafting.lua Sun Aug 01 08:16:08 2010 -0700 +++ b/Modules/Crafting.lua Sun Aug 01 08:42:29 2010 -0700 @@ -320,6 +320,8 @@ winner = lastWinner lastWinner = "" + data.queue = ceil(data.queue / GetTradeSkillNumMade(data.tradeSkillIndex)) + return winner, data.queue end diff -r 574c154d24ab -r a8fc802b42ba Modules/QuickAuctions.lua --- 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