Fixed bags (no longer handled) and consumables and recipes (now handled)
Kevin Lyles [09-14-09 - 18:07]
Fixed bags (no longer handled) and consumables and recipes (now handled)
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