Fixed an issue with the reagents' skill index not being updated.
pschifferer [02-28-09 - 16:23]
Fixed an issue with the reagents' skill index not being updated.
Made the main frame not add itself to the list of UISpecialFrames.
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 @@
<OnLoad>
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);
</OnLoad>
<OnShow>
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);