Quantcast

Fehck for the pprofisson. Fo' drizzle!

ackis [01-21-09 - 18:27]
Fehck for the pprofisson. Fo' drizzle!
Filename
AckisRecipeList.lua
RecipeDB/ARL-Jewelcraft.lua
diff --git a/AckisRecipeList.lua b/AckisRecipeList.lua
index 5b772b2..fd0a21e 100644
--- a/AckisRecipeList.lua
+++ b/AckisRecipeList.lua
@@ -1699,12 +1699,10 @@ do
 			if (playerData == nil) then
 				playerData = InitPlayerData()
 			end
-
 			-- Lets create all the databases needed if this is the first time everything has been run.
 			if (RecipeList == nil) then
 				InitDatabases()
 			end
-
 			-- Get the name of the current trade skill opened, along with the current level of the skill.
 			playerData.playerProfession, playerData.playerProfessionLevel = GetTradeSkillLine()
             --@debug@
@@ -2084,63 +2082,66 @@ function addon:GetTextDump(RecipeDB, profession)

 	for SpellID in pairs(RecipeDB) do

-		-- Add Spell ID, Name and Skill Level to the list
-		tinsert(texttable,SpellID)
-		tinsert(texttable,",")
-		tinsert(texttable,RecipeDB[SpellID]["Name"])
-		tinsert(texttable,",")
-		tinsert(texttable,RecipeDB[SpellID]["Level"])
-		tinsert(texttable,",[")
+		if (RecipeDB[SpellID]["Profession"] == profspellid) then
+
+			-- Add Spell ID, Name and Skill Level to the list
+			tinsert(texttable,SpellID)
+			tinsert(texttable,",")
+			tinsert(texttable,RecipeDB[SpellID]["Name"])
+			tinsert(texttable,",")
+			tinsert(texttable,RecipeDB[SpellID]["Level"])
+			tinsert(texttable,",[")
+
+			-- Add in all the filter flags
+			local flags = RecipeDB[SpellID]["Flags"]

-		-- Add in all the filter flags
-		local flags = RecipeDB[SpellID]["Flags"]
+			-- Find out which flags are marked as "true"
+			for i=1,MaxFilterIndex,1 do
+				if (flags[i] == true) then
+					tinsert(texttable,i)
+					tinsert(texttable,",")
+				end
+			end

-		-- Find out which flags are marked as "true"
-		for i=1,MaxFilterIndex,1 do
-			if (flags[i] == true) then
+			tinsert(texttable,"],[")
+
+			-- Find out which unique acquire methods we have
+			local acquire = RecipeDB[SpellID]["Acquire"]
+			local acquirelist = {}
+
+			for i in pairs(acquire) do
+				if (acquire[i]["Type"] == 1) then
+					acquirelist["Trainer"] = true
+				elseif (acquire[i]["Type"] == 2) then
+					acquirelist["Vendor"] = true
+				elseif (acquire[i]["Type"] == 3) then
+					acquirelist["Mob Drop"] = true
+				elseif (acquire[i]["Type"] == 4) then
+					acquirelist["Quest"] = true
+				elseif (acquire[i]["Type"] == 5) then
+					acquirelist["Seasonal"] = true
+				elseif (acquire[i]["Type"] == 6) then
+					acquirelist["Reputation"] = true
+				elseif (acquire[i]["Type"] == 7) then
+					acquirelist["World Drop"] = true
+				elseif (acquire[i]["Type"] == 8) then
+					acquirelist["Custom"] = true
+				end
+			end
+
+			-- Add all the acquire methods in
+			for i in pairs(acquirelist) do
 				tinsert(texttable,i)
 				tinsert(texttable,",")
 			end
-		end

-		tinsert(texttable,"],[")
-
-		-- Find out which unique acquire methods we have
-		local acquire = RecipeDB[SpellID]["Acquire"]
-		local acquirelist = {}
-
-		for i in pairs(acquire) do
-			if (acquire[i]["Type"] == 1) then
-				acquirelist["Trainer"] = true
-			elseif (acquire[i]["Type"] == 2) then
-				acquirelist["Vendor"] = true
-			elseif (acquire[i]["Type"] == 3) then
-				acquirelist["Mob Drop"] = true
-			elseif (acquire[i]["Type"] == 4) then
-				acquirelist["Quest"] = true
-			elseif (acquire[i]["Type"] == 5) then
-				acquirelist["Seasonal"] = true
-			elseif (acquire[i]["Type"] == 6) then
-				acquirelist["Reputation"] = true
-			elseif (acquire[i]["Type"] == 7) then
-				acquirelist["World Drop"] = true
-			elseif (acquire[i]["Type"] == 8) then
-				acquirelist["Custom"] = true
+			if (RecipeDB[SpellID]["Known"]) then
+				tinsert(texttable,"],true\n")
+			else
+				tinsert(texttable,"],false\n")
 			end
-		end

-		-- Add all the acquire methods in
-		for i in pairs(acquirelist) do
-			tinsert(texttable,i)
-			tinsert(texttable,",")
 		end
-
-		if (RecipeDB[SpellID]["Known"]) then
-			tinsert(texttable,"],true\n")
-		else
-			tinsert(texttable,"],false\n")
-		end
-
 	end

 	return tconcat(texttable,"")
diff --git a/RecipeDB/ARL-Jewelcraft.lua b/RecipeDB/ARL-Jewelcraft.lua
index 4adc8db..898825c 100644
--- a/RecipeDB/ARL-Jewelcraft.lua
+++ b/RecipeDB/ARL-Jewelcraft.lua
@@ -2880,11 +2880,11 @@ function addon:InitJewelcrafting(RecipeDB)

 	if (version == "3.0.8") then

-	-- Icy Prism --
+	-- Icy Prism -- 62242
 	recipecount = recipecount + 1
-	--self:addTradeSkill(RecipeDB,59759,425,44943,1, 25229)
-	--self:addTradeFlags(RecipeDB,59759,1,2,3,21,22,23,24,25,26,27,28,29,30,37,41,63)
-	--self:addTradeAcquire(RecipeDB,59759,1,26915,1,26960,1,26982,1,26997,1,28701)
+	self:addTradeSkill(RecipeDB,62242,425,44943,1, 25229)
+	self:addTradeFlags(RecipeDB,62242,1,2,3,21,22,23,24,25,26,27,28,29,30,37,41,63)
+	self:addTradeAcquire(RecipeDB,62242,1,26915,1,26960,1,26982,1,26997,1,28701)

 	end