Skip to content

Commit

Permalink
2.0.90-Release
Browse files Browse the repository at this point in the history
  • Loading branch information
Goldpaw committed Mar 26, 2024
1 parent c6a6bc8 commit 12b6846
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 14 deletions.
27 changes: 13 additions & 14 deletions Bagnon_ItemLevel/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ local s_num_slots = "^" .. (string_gsub(string_gsub(CONTAINER_SLOTS, "%%([%d%$]-
local colors = {
[0] = { 157/255, 157/255, 157/255 }, -- Poor
[1] = { 240/255, 240/255, 240/255 }, -- Common
[2] = { 30/255, 178/255, 0/255 }, -- Uncommon
[2] = { 30/255, 198/255, 0/255 }, -- Uncommon
[3] = { 0/255, 112/255, 221/255 }, -- Rare
[4] = { 163/255, 53/255, 238/255 }, -- Epic
[5] = { 225/255, 96/255, 0/255 }, -- Legendary
Expand All @@ -90,7 +90,7 @@ Module:AddUpdater(function(self)
if (not equip and self.info.hyperlink) then
_,_,_,equip = GetItemInfoInstant(self.info.hyperlink)
end
local noequip = not equip or not _G[equip] or quip == "INVTYPE_BAG" or equip == "INVTYPE_NON_EQUIP" or equip == "INVTYPE_TABARD" or equip == "INVTYPE_AMMO" or equip == "INVTYPE_QUIVER" or equip == "INVTYPE_BODY"
local noequip = not equip or not _G[equip] or quip == "INVTYPE_BAG" or equip == "INVTYPE_NON_EQUIP" or equip == "INVTYPE_NON_EQUIP_IGNORE" or equip == "INVTYPE_TABARD" or equip == "INVTYPE_AMMO" or equip == "INVTYPE_QUIVER" or equip == "INVTYPE_BODY"
local isbag = equip == "INVTYPE_BAG"
local isgear = quality and quality > 0 and not noequip
local ispet = battlepetclass and class == battlepetclass
Expand Down Expand Up @@ -132,20 +132,19 @@ Module:AddUpdater(function(self)
end
end
end
end

if (isbag) then
for i = 3,4 do
local msg = tooltipData.lines[i] and tooltipData.lines[i].leftText
if (not msg) then break end
if (isbag) then
for i = 3,4 do
local msg = tooltipData.lines[i] and tooltipData.lines[i].leftText
if (not msg) then break end

local numslots = string_match(msg, s_num_slots)
if (numslots) then
numslots = tonumber(numslots)
if (numslots > 0) then
message = numslots
local numslots = string_match(msg, s_num_slots)
if (numslots) then
numslots = tonumber(numslots)
if (numslots > 0) then
message = numslots
end
break
end
break
end
end
end
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [2.0.90-Release] 2024-03-26
### Changed
- Uncommon rarity coloring should be a bit brighter and easier to spot now.

### Fixed
- The issue in retail where all items would get their itemlevel displayed has been fixed. We're bag to mostly showing equipable gear, battle pets and container slots again.

## [2.0.89-Release] 2024-03-22
- Updated for WoW Client Patch 10.2.6.
- Updated for WoW Client Patch 4.4.0.
Expand Down

0 comments on commit 12b6846

Please sign in to comment.