diff --git a/Skillet.lua b/Skillet.lua index 18cd9ce..26fc68b 100644 --- a/Skillet.lua +++ b/Skillet.lua @@ -300,7 +300,7 @@ function Skillet:OnInitialize() local dataVersion = 5 local queueVersion = 1 local customVersion = 1 - local recipeVersion = 4 + local recipeVersion = 5 local _,wowBuild,_,wowVersion = GetBuildInfo(); self.wowBuild = wowBuild self.wowVersion = wowVersion diff --git a/SkilletData.lua b/SkilletData.lua index d1286ee..c6e6dc6 100644 --- a/SkilletData.lua +++ b/SkilletData.lua @@ -1110,6 +1110,10 @@ local function ScanTrade() Skillet.db.realm.subClass[player][tradeID][itemID] = itemSubType end if itemEquipLoc then + if itemEquipLoc == "INVTYPE_ROBE" then + DA.DEBUG(2,"ScanTrade: Changing itemEquipLoc from INVTYPE_ROBE to INVTYPE_CHEST") + itemEquipLoc = "INVTYPE_CHEST" + end if not Skillet.db.realm.invSlot[player][tradeID].name then Skillet.db.realm.invSlot[player][tradeID].name = {} Skillet.db.realm.invSlot[player][tradeID].selected = "None" diff --git a/SkilletNewsData.lua b/SkilletNewsData.lua index e2b8e27..7a5f9cb 100644 --- a/SkilletNewsData.lua +++ b/SkilletNewsData.lua @@ -31,6 +31,9 @@ Skillet.NewsData = { data = { { header = "Skill Levels", body = "Update for WotLK recipes" }, }, + data = { + { header = "Slot Filter", body = "Change itemEquipLoc from INVTYPE_ROBE to INVTYPE_CHEST" }, + }, }, }, }, diff --git a/UI/Filtering.lua b/UI/Filtering.lua index 567e7fe..d6a8079 100644 --- a/UI/Filtering.lua +++ b/UI/Filtering.lua @@ -37,7 +37,7 @@ local L = LibStub("AceLocale-3.0"):GetLocale("Skillet") -- Skillet.db.realm.invSlot[player][tradeID].selected -- function Skillet:RecipeFilter(skillIndex) - --DA.DEBUG(1,"RecipeFilter("..tostring(skillIndex)..")") + --DA.DEBUG(0,"RecipeFilter("..tostring(skillIndex)..")") local skill = Skillet:GetSkill(Skillet.currentPlayer, Skillet.currentTrade, skillIndex) --DA.DEBUG(1,"skill= "..DA.DUMP1(skill,1)) local recipe = Skillet:GetRecipe(skill.id) @@ -61,17 +61,19 @@ function Skillet:RecipeFilter(skillIndex) --DA.DEBUG(1,"RecipeFilter: not filtering anything") return false end + DA.DEBUG(1,"RecipeFilter: itemID= "..tostring(itemID)..", subClass= "..tostring(subClass[itemID])..", invSlot= "..tostring(invSlot[itemID])) + DA.DEBUG(1,"RecipeFilter: subClass.selected= "..tostring(subClass.selected)..", invSlot.selected= "..tostring(invSlot.selected)) if subClass[itemID] == subClass.selected or invSlot[itemID] == invSlot.selected then -- -- filtering active, return only items that meet the criteria -- - --DA.DEBUG(1,"RecipeFilter: filtering active, item met the criteria") + DA.DEBUG(1,"RecipeFilter: filtering active, "..tostring(recipe.name).." met the criteria") return false end -- -- filtering active, item did not meet the criteria -- - --DA.DEBUG(1,"RecipeFilter: filtering active, item did not meet the criteria") + DA.DEBUG(1,"RecipeFilter: filtering active, "..tostring(recipe.name).." did not meet the criteria") return true end