Mercurial > wow > itemauditor
changeset 88:2112f71c4237
Changed the ArkInventory rule to consider items with no competition to be profitable.
author | Asa Ayers <Asa.Ayers@Gmail.com> |
---|---|
date | Tue, 10 Aug 2010 23:19:18 -0700 |
parents | 26f45b6e8d4d |
children | 54b917340283 |
files | CHANGELOG.txt Modules/ArkInventoryRules.lua |
diffstat | 2 files changed, 6 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/CHANGELOG.txt Sun Aug 08 07:57:45 2010 -0700 +++ b/CHANGELOG.txt Tue Aug 10 23:19:18 2010 -0700 @@ -1,3 +1,7 @@ +2010-08-08 Asa Ayers <Asa.Ayers@Gmail.com> + +- Changed the ArkInventory rule to consider items with no competition to be profitable. + 2010-08-08 Asa Ayers <Asa.Ayers@Gmail.com> - Removed some debugging code and added some code to prevent ItemAuditor from crashing if debug code gets released.
--- a/Modules/ArkInventoryRules.lua Sun Aug 08 07:57:45 2010 -0700 +++ b/Modules/ArkInventoryRules.lua Tue Aug 10 23:19:18 2010 -0700 @@ -47,11 +47,8 @@ local ap = ItemAuditor:GetAuctionPrice(link) local keep = 1 - ItemAuditor:GetAHCut() - if ap ~= nil then - - if ap > ceil(investedPerItem/keep) then - return true - end + if ap == nil or ap > ceil(investedPerItem/keep) then + return true end end return false