From 696b5b72a9c2e7bdbabb9448c561d12705f2e8e5 Mon Sep 17 00:00:00 2001 From: ackis Date: Wed, 22 Oct 2008 04:40:27 +0000 Subject: [PATCH] More stuff done wheee --- AckisRecipeList.lua | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/AckisRecipeList.lua b/AckisRecipeList.lua index 042d37f..70859ef 100644 --- a/AckisRecipeList.lua +++ b/AckisRecipeList.lua @@ -544,10 +544,12 @@ function addon:addTradeAcquire(RecipeDB, SpellID, ...) i = i + 2 if (AcquireType == 6) then + local RepLevel, RepVendor = select(i, ...) RecipeDB[SpellID]["Acquire"][index]["RepLevel"] = RepLevel RecipeDB[SpellID]["Acquire"][index]["RepVendor"] = RepVendor i = i + 2 + end index = index + 1 @@ -1141,7 +1143,7 @@ function addon:UpdateFilters(RecipeDB, AllSpecialtiesTable, playerData) -- Parse through all the entries in the Recipe array for RecipeID in pairs(RecipeDB) do ---self:Print(RecipeID) + -- Determine if we are to display this recipe or not local displayflag = self:CheckDisplayRecipe(RecipeDB[RecipeID], AllSpecialtiesTable, playerProfessionLevel, playerProfession, playerSpecialty, playerFaction, playerClass) @@ -1151,6 +1153,12 @@ function addon:UpdateFilters(RecipeDB, AllSpecialtiesTable, playerData) end + if (RecipeDB[RecipeID]["Profession"] ~= playerProfession) then + + playerData.otherRecipes = playerData.otherRecipes + 1 + + end + -- Set the display flag RecipeDB[RecipeID]["Display"] = displayflag @@ -1306,6 +1314,7 @@ do playerData.playerFaction = UnitFactionGroup("player") local _ _, playerData.playerClass = UnitClass("player") + playerData.otherRecipes = 0 playerData["Reputation"] = {} self:GetFactionLevels(playerData["Reputation"]) @@ -1491,6 +1500,8 @@ do self:Print("Debug: Found (known) Recipes: " .. playerData.foundRecipes) self:Print("Debug: Total Recipes in Database: " .. playerData.totalRecipes) self:Print("Debug: Filtered Recipes: " .. playerData.filteredRecipes) + self:Print("Debug: Other Recipes: " .. playerData.otherRecipes) + self:CreateFrame(RecipeList, sortedindex, playerData, AllSpecialtiesTable, TrainerList, VendorList, QuestList, ReputationList, SeasonalList, MobList) -- 1.7.9.5