Skip to content

Commit

Permalink
2.0.72-Release
Browse files Browse the repository at this point in the history
  • Loading branch information
Goldpaw committed Nov 1, 2023
1 parent 66e9cc6 commit a454fa3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
15 changes: 10 additions & 5 deletions Bagnon_BoE/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,15 @@ end

local Module = Bagnon:NewModule(Addon, Private)

-- Speed!
-- Lua API
local _G = _G
local ipairs = ipairs
local string_find = string.find

-- WoW API
local C_Container, C_TooltipInfo, TooltipUtil = C_Container, C_TooltipInfo, TooltipUtil
local CreateFrame, GetItemInfo, GetItemQualityColor = CreateFrame, GetItemInfo, GetItemQualityColor

-- Addon cache
local retail = Private.IsRetail
local wrath = Private.IsWrath
Expand Down Expand Up @@ -80,7 +84,8 @@ end

Module:AddUpdater(function(self)

local message, color, mult
local db = BagnonBoE_DB
local message, color, mult, _

if (self.hasItem) then

Expand Down Expand Up @@ -160,9 +165,9 @@ Module:AddUpdater(function(self)

message = bind == 3 and L["BoU"] or L["BoE"]

if (BagnonBoE_DB.enableRarityColoring) then
color = quality and colors[quality]
mult = (quality ~= 3 and quality ~= 4) and .7
if (db.enableRarityColoring) then
color = quality and colors[quality > 0 and quality or 1]
mult = (quality ~= 3 and quality ~= 4 and quality ~= 0 and quality ~= 1) and .7
end
end

Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ 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.72-Release] 2023-11-01
### Changed
- Some minor performance tweaks. Everything matters!
- Made the BoE/BoU labels brighter for poor and common quality items.

### Fixed
- Fixed an issue where underscore `_` was used as a global variable. Ouch.

## [2.0.71-Release] 2023-10-26
### Fixed
- All item qualities including poor and common will now display the BoE label when appropriate in Retail.
Expand Down

0 comments on commit a454fa3

Please sign in to comment.