Quantcast

Made shopping list buy what's in the list instead of trying to be 'smart.' Changed pushable priority of queue window.

Paul Schifferer [12-01-10 - 06:12]
Made shopping list buy what's in the list instead of trying to be 'smart.'  Changed pushable priority of queue window.
Filename
CauldronData.lua
CauldronMain.lua
CauldronShoppingList.lua
diff --git a/CauldronData.lua b/CauldronData.lua
index d574623..628552f 100644
--- a/CauldronData.lua
+++ b/CauldronData.lua
@@ -7,10 +7,11 @@ Cauldron.vars.tools = {
 	7005, -- skinning knife
 	5956, -- blacksmith hammer
 	2901, -- mining pick
-	-- gnomish army knife
+	-- Gnomish army knife
 	6256, -- fishing pole
 	20815, -- jeweler's kit
 	20824, -- simple grinder
+	-- hammerpick
 };

 -- vendor item list
@@ -82,3 +83,35 @@ Cauldron.vars.vendoritems = {
 Cauldron.vars.results = {
 };

+-- map of items generated from "support" professions (e.g., mining), or from prospecting (jewelcrafting)
+-- or milling (inscription)
+Cauldron.vars.generateditems = {
+	-- MINING
+	-- titansteel
+	-- titanium
+	-- saronite
+	-- cobalt
+	-- khorium
+	-- hardened adamantite
+	-- elementium
+	-- felsteel
+	-- adamantite
+	-- fel iron
+	-- arcanite
+	-- thorium
+	-- mithril
+	-- iron
+	-- gold
+	-- silver
+	-- truesilver
+	-- bronze
+	-- copper
+	-- tin
+	-- etc....
+
+	-- PROSPECTING
+	-- etc....
+
+	-- MILLING
+	-- etc....
+};
diff --git a/CauldronMain.lua b/CauldronMain.lua
index c8c2be0..107c484 100644
--- a/CauldronMain.lua
+++ b/CauldronMain.lua
@@ -1,7 +1,7 @@
 -- $Revision: 212 $
 -- Cauldron main file

-UIPanelWindows["CauldronQueueWindowFrame"] = { area = "left", pushable = 3 };
+UIPanelWindows["CauldronQueueWindowFrame"] = { area = "left", pushable = 6 };

 Cauldron = LibStub("AceAddon-3.0"):NewAddon("Cauldron", "AceEvent-3.0", "AceTimer-3.0", "AceConsole-3.0", "AceHook-3.0", "LibLogger-1.0");
 local L = LibStub("AceLocale-3.0"):GetLocale("Cauldron");
diff --git a/CauldronShoppingList.lua b/CauldronShoppingList.lua
index 2f21324..ce480cb 100644
--- a/CauldronShoppingList.lua
+++ b/CauldronShoppingList.lua
@@ -191,10 +191,10 @@ function CauldronShopping:AutoBuyShoppingItems(list, requestor)
 			-- check if the merchant has the item and it can be purchased
 			if merchant[item] then
 				-- check if the toon has enough of the item already
-				local counts = Cauldron:ReagentCount(item);
-				if counts.total < amount then
-					CauldronShopping:BuyItem(item, merchant[item], amount - counts.total);
-				end
+				-- local counts = Cauldron:ReagentCount(item);
+				-- if counts.total < amount then
+					CauldronShopping:BuyItem(item, merchant[item], amount); -- amount - counts.total
+				-- end
 			end
 		end
 	end