comparison Modules/QuickAuctions.lua @ 40:5273038322d7 release

Updated the way postage was counted so that if you mail multiple items at once, they will all have the postage counted. I also removed the 30c for postage from how QA thresholds are calculated now that they will be counted every time.
author Asa Ayers <Asa.Ayers@Gmail.com>
date Mon, 19 Jul 2010 20:55:50 -0700
parents 554b30908b33
children 4ec321eb0dfe
comparison
equal deleted inserted replaced
39:003de902ae64 40:5273038322d7
43 end 43 end
44 44
45 -- add my minimum profit margin 45 -- add my minimum profit margin
46 -- GetAuctionThreshold returns a percent as a whole number. This will convert 25 to 1.25 46 -- GetAuctionThreshold returns a percent as a whole number. This will convert 25 to 1.25
47 copper = copper * (1+addon:GetAuctionThreshold()) 47 copper = copper * (1+addon:GetAuctionThreshold())
48
49 -- Adding the cost of mailing every item once.
50 copper = copper + 30
51 48
52 -- add AH Cut 49 -- add AH Cut
53 local keep = 1 - addon:GetAHCut() 50 local keep = 1 - addon:GetAHCut()
54 return copper/keep 51 return copper/keep
55 end 52 end