From 920304b954a1e03b6ac81745bcdf85a8fc9c80bb Mon Sep 17 00:00:00 2001 From: ackis Date: Tue, 9 Jun 2009 16:50:11 +0000 Subject: [PATCH] Fix issues when you're crafting something with leather or cloth in the regents. --- ARLDatamine.lua | 5 +++-- RecipeDB/ARL-Leatherwork.lua | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/ARLDatamine.lua b/ARLDatamine.lua index f7f055d..6c09c24 100644 --- a/ARLDatamine.lua +++ b/ARLDatamine.lua @@ -2299,9 +2299,10 @@ do scan_data.Warrior = true scan_data.found_class = true -- Armor types - elseif (strmatch(text, "cloth")) then + -- Check the end of the item for cloth and leather because we can craft something with those items in it + elseif (strmatch(text, "cloth$")) then scan_data.Cloth = true - elseif (strmatch(text, "leather")) then + elseif (strmatch(text, "leather$")) then scan_data.Leather = true elseif (strmatch(text, "mail")) then scan_data.Mail = true diff --git a/RecipeDB/ARL-Leatherwork.lua b/RecipeDB/ARL-Leatherwork.lua index c1d5a2c..d6b32f2 100644 --- a/RecipeDB/ARL-Leatherwork.lua +++ b/RecipeDB/ARL-Leatherwork.lua @@ -1811,12 +1811,12 @@ function addon:InitLeatherworking(RecipeDB) -- Knothide Quiver -- 44344 self:addTradeSkill(RecipeDB,44344,315,34100,2,2108) - self:addTradeFlags(RecipeDB,44344,1,2,3,21,22,23,24,25,26,27,28,29,30,36,41,51,57) + self:addTradeFlags(RecipeDB,44344,1,2,3,21,22,23,24,25,26,27,28,29,30,36,41,51) self:addTradeAcquire(RecipeDB,44344,3,22143,3,22144,3,22148,3,23022) -- Quiver of a Thousand Feathers -- 44359 self:addTradeSkill(RecipeDB,44359,350,34105,1,2108) - self:addTradeFlags(RecipeDB,44359,1,2,4,21,22,23,24,25,26,27,28,29,30,36,41,51,57,107) + self:addTradeFlags(RecipeDB,44359,1,2,4,21,22,23,24,25,26,27,28,29,30,36,41,51,107) self:addTradeAcquire(RecipeDB,44359,6,1011,3,21655) -- Netherscale Ammo Pouch -- 44768 -- 1.7.9.5