Skip to content

Commit

Permalink
Update MagicEraser.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
Gogo1951 authored Dec 9, 2024
1 parent a8c591c commit 52f1965
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions MagicEraser.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ local MagicEraser = {}

-- Constants
local DEFAULT_ICON = "Interface\\Icons\\inv_misc_bag_07_green"
local UPDATE_THROTTLE = 0.5
local UPDATE_THROTTLE = 0.3

-- Load allowed item lists
MagicEraser.AllowedDeleteQuestItems = MagicEraser_AllowedDeleteQuestItems or {}
Expand Down Expand Up @@ -145,16 +145,16 @@ function MagicEraser:RefreshTooltip()

tooltip:AddLine("|cff00B0FFMagic Eraser|r", 1, 1, 1)
tooltip:AddLine(" ", 1, 1, 1)
tooltip:AddLine("Click to erase the lowest-value item in your bags.", 1, 1, 1)
tooltip:AddLine(" ", 1, 1, 1)

if itemInfo then
tooltip:AddLine("Click to erase the lowest-value item in your bags.", 1, 1, 1)
tooltip:AddLine(" ", 1, 1, 1)
local valueString = self:FormatCurrency(itemInfo.value)
local stackString = (itemInfo.count > 1) and string.format(" x%d", itemInfo.count) or ""

tooltip:AddDoubleLine(string.format("%s%s", itemInfo.link, stackString), valueString, 1, 1, 1, 1, 1, 1)
else
tooltip:AddLine("|cff33FF33Congratulations, your bags are full of good stuff!|r", 1, 1, 1)
tooltip:AddLine("|cff33FF33Congratulations, your bags are full of good stuff!|r", 1, 1, 1)
tooltip:AddLine(" ")
tooltip:AddLine("|cffFFFFFFYou'll have to manually erase something if you|r", 1, 1, 1)
tooltip:AddLine("|cffFFFFFFneed to free up more space.|r", 1, 1, 1)
Expand Down

0 comments on commit 52f1965

Please sign in to comment.