From ea7abc6d5a6cc031900182d3a87ccdb5e71ec134 Mon Sep 17 00:00:00 2001 From: Kevin Lyles Date: Mon, 14 Sep 2009 13:07:53 -0500 Subject: [PATCH] Fixed bags (no longer handled) and consumables and recipes (now handled) --- Regexps.lua | 1 + WeightsWatcher.lua | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Regexps.lua b/Regexps.lua index 5b6628d..bced151 100644 --- a/Regexps.lua +++ b/Regexps.lua @@ -5,6 +5,7 @@ Preprocess = { {"Increases your", "Increases"}, {"Increases the target's", "Increases"}, {"Unique%-Equipped", "Unique"}, + {"^Use: Teaches you how to permanently enchant ", "Use: Permanently enchant "}, } ProcessedLines = { diff --git a/WeightsWatcher.lua b/WeightsWatcher.lua index 5c643c9..b9d9a5c 100644 --- a/WeightsWatcher.lua +++ b/WeightsWatcher.lua @@ -74,7 +74,7 @@ function DisplayItemInfo(tooltip, ttname) end _, _, _, _, _, itemType, _, stackSize = GetItemInfo(link) - if IsEquippableItem(link) or (itemType == "Gem" and stackSize == 1) then + if (IsEquippableItem(link) and itemType ~= "Container" and itemType ~= "Quiver") or (itemType == "Gem" and stackSize == 1) or (itemType == "Consumable") or (itemType == "Recipe") then -- Skip item name and "currently equipped" if getglobal(ttname .. "TextLeft1"):GetText() == CURRENTLY_EQUIPPED then start = 3 -- 1.7.9.5