From a6d8b0dc396848ce57550a1961ce05b3b0d9598d Mon Sep 17 00:00:00 2001 From: Simon Hirsig Date: Wed, 18 Jan 2023 21:23:10 +0100 Subject: [PATCH] fix for wotlk phase 2 --- core/tooltip.lua | 2 +- gui/core.lua | 1 - util/info.lua | 15 +++++++++++++++ 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/core/tooltip.lua b/core/tooltip.lua index 69370ee7..01608dbd 100644 --- a/core/tooltip.lua +++ b/core/tooltip.lua @@ -197,7 +197,7 @@ end function game_tooltip_hooks.SetBagItem(bag, slot) local link = C_Container.GetContainerItemLink(bag, slot) if link then - extend_tooltip(GameTooltip, link, select(2, C_Container.GetContainerItemInfo(bag, slot))) + extend_tooltip(GameTooltip, link, C_Container.GetContainerItemInfo(bag, slot).stackCount) end end diff --git a/gui/core.lua b/gui/core.lua index 42145797..77874e0b 100644 --- a/gui/core.lua +++ b/gui/core.lua @@ -202,7 +202,6 @@ function M.editbox(parent) local editbox = CreateFrame('EditBox', nil, parent, 'BackdropTemplate') editbox:SetAutoFocus(false) editbox:SetTextInsets(1.5, 1.5, 3, 3) - editbox:SetMaxLetters(255) editbox:SetHeight(24) editbox:SetTextColor(0, 0, 0, 0) set_content_style(editbox) diff --git a/util/info.lua b/util/info.lua index 4099b546..9a0328d5 100644 --- a/util/info.lua +++ b/util/info.lua @@ -241,6 +241,21 @@ do [4376] = 5, [4386] = 5, + -- drums + [39972] = 50, + [29529] = 50, + [49633] = 50, + [29532] = 50, + [29531] = 50, + [29530] = 50, + [49634] = 50, + [29528] = 50, + [185848] = 50, + [185849] = 50, + [185850] = 50, + [185851] = 50, + [185852] = 50, + -- ... TODO } function M.max_item_charges(item_id)