Mercurial > wow > inventory
comparison Modules/Queue.lua @ 194:ba5ddc4448dd
Cleaning up.
| author | Zerotorescue |
|---|---|
| date | Sat, 05 Feb 2011 01:14:52 +0100 |
| parents | da28be6ccd31 |
| children | 15f22a466596 |
comparison
equal
deleted
inserted
replaced
| 193:7e924de75896 | 194:ba5ddc4448dd |
|---|---|
| 455 end | 455 end |
| 456 | 456 |
| 457 -- Retrieve group settings | 457 -- Retrieve group settings |
| 458 local restockTarget = addon:GetOptionByKey(groupName, "restockTarget"); | 458 local restockTarget = addon:GetOptionByKey(groupName, "restockTarget"); |
| 459 local bonusQueue = addon:GetOptionByKey(groupName, "bonusQueue"); | 459 local bonusQueue = addon:GetOptionByKey(groupName, "bonusQueue"); |
| 460 local minCraftingQueue = floor( addon:GetOptionByKey(groupName, "minCraftingQueue") * addon:GetOptionByKey(groupName, "restockTarget") ); -- If the minCraftingQueue is 5% and restockTarget is 60, this will result in 3 | 460 local minCraftingQueue = floor( addon:GetOptionByKey(groupName, "minCraftingQueue") * restockTarget ); -- If the minCraftingQueue is 5% and restockTarget is 60, this will result in 3 |
| 461 local priceThreshold = addon:GetOptionByKey(groupName, "priceThreshold"); | 461 local priceThreshold = addon:GetOptionByKey(groupName, "priceThreshold"); |
| 462 | 462 |
| 463 for itemId, count in pairs(addon.db.profile.groups[groupName].items) do | 463 for itemId, count in pairs(addon.db.profile.groups[groupName].items) do |
| 464 if craftables[itemId] then | 464 if craftables[itemId] then |
| 465 local currentStock = addon:GetItemCount(itemId, groupName); | 465 local currentStock = addon:GetItemCount(itemId, groupName); |
