Mercurial > wow > itemauditor
comparison Modules/ArkInventoryRules.lua @ 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 | 71de6e86a1a4 |
| children | 79dc87430cb3 |
comparison
equal
deleted
inserted
replaced
| 87:26f45b6e8d4d | 88:2112f71c4237 |
|---|---|
| 45 | 45 |
| 46 if investedTotal > 0 then | 46 if investedTotal > 0 then |
| 47 local ap = ItemAuditor:GetAuctionPrice(link) | 47 local ap = ItemAuditor:GetAuctionPrice(link) |
| 48 local keep = 1 - ItemAuditor:GetAHCut() | 48 local keep = 1 - ItemAuditor:GetAHCut() |
| 49 | 49 |
| 50 if ap ~= nil then | 50 if ap == nil or ap > ceil(investedPerItem/keep) then |
| 51 | 51 return true |
| 52 if ap > ceil(investedPerItem/keep) then | |
| 53 return true | |
| 54 end | |
| 55 end | 52 end |
| 56 end | 53 end |
| 57 return false | 54 return false |
| 58 elseif string.lower( strtrim( arg ) ) == 'qa' then | 55 elseif string.lower( strtrim( arg ) ) == 'qa' then |
| 59 if ItemAuditor:IsQAEnabled() then | 56 if ItemAuditor:IsQAEnabled() then |
