From dd442171750c343a5b40274ae782c67fe93e71fd Mon Sep 17 00:00:00 2001 From: pschifferer Date: Sat, 28 Feb 2009 16:23:08 +0000 Subject: [PATCH] Fixed an issue with the reagents' skill index not being updated. Made the main frame not add itself to the list of UISpecialFrames. --- CauldronMain.lua | 6 +++--- CauldronMain.xml | 2 +- CauldronTradeskill.lua | 5 +++++ 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/CauldronMain.lua b/CauldronMain.lua index 67bcce2..c09ba32 100644 --- a/CauldronMain.lua +++ b/CauldronMain.lua @@ -741,9 +741,9 @@ function Cauldron:UpdateShoppingListFromQueue() for i,item in ipairs(items) do local id = Cauldron:GetIdFromLink(item.link); local have = GetItemCount(item.link); - local needed = math.max(0, item.amount - have); - if (needed > 0) and Cauldron:IsVendorItem(id) then - Cauldron:AddItemToShoppingList(item.name, needed, true); + local need = math.max(0, item.amount - have); + if (need > 0) and Cauldron:IsVendorItem(id) then + Cauldron:AddItemToShoppingList(item.name, need, true); end end end diff --git a/CauldronMain.xml b/CauldronMain.xml index 68f8d2c..01af4f9 100644 --- a/CauldronMain.xml +++ b/CauldronMain.xml @@ -1395,7 +1395,7 @@ self:SetBackdropColor(.05,.05,.05,.8); self:SetBackdropBorderColor(.4,.4,.4,1); - tinsert(UISpecialFrames, self:GetName()); + -- tinsert(UISpecialFrames, self:GetName()); CauldronFrameTitleText:SetText(Cauldron:LocaleString("Cauldron").." v"..Cauldron.version); diff --git a/CauldronTradeskill.lua b/CauldronTradeskill.lua index 5e77137..a158665 100644 --- a/CauldronTradeskill.lua +++ b/CauldronTradeskill.lua @@ -77,6 +77,11 @@ function Cauldron:UpdateSkills() skillDB.recipes[name].available = avail; skillDB.recipes[name].minMade = minMade; skillDB.recipes[name].maxMade = maxMade; + + -- update reagent skill index + for _,r in ipairs(skillDB.recipes[name].reagents) do + r.skillIndex = i; + end else -- add the recipe info and other miscellaneous info local itemLink = GetTradeSkillItemLink(i); -- 1.7.9.5