=============================================================================
-- 
-- Name: Below Average Items
-- Desc: Addon for World of Warcraft
--
-- Author: gmz323(Greg)
-- current version: v1.66
-- (c) 2012-2026
--
=============================================================================

Description: 
============
Below Average Items is an addon that places a small visual indicator on equipped items that are below your current iLvl average.  A quick glance at your character sheet makes it easy to see which items are below average without having to examine each item individually. 

A red visual indicator marks the lowest level item(s). Mousing over the visual indicator will show a tooltip with the items iLvl vs your current average.  

Download location:
==================
* wowinterface - http://bit.ly/389nRVB
* curse - http://bit.ly/2TiHXse

Official Homepage:
==================
http://bit.ly/2FMZDUR

Usage:
======
* Enable or Disable the addon via the addons screen.
* There are currently no config options for this simple addon.
* /bai or /belowaverageitems will print the current addon version in the chat window.

Features:
=========
* Gives visual indicator on items that are below current average on your character sheet. (red indicator = lowest iLvl)
* Mouse over visual indicator to see that items iLvl and your current average. 
* Note - Heirloom items on your character are ignored as their iLvl is reported as 1.

Localizations:
==============
Files are in place for basic localization support.

In the BelowAverageItems\Locales addon folder are the following files for localization. They should be your starting point if you want to help out.
* enUS.lua - english client
* esES.lua - spanish client (Thanks MrUrkaz!)
* ptBR.lua - Portuguese client (Thanks MrUrkaz!)
* deDE.lua - German client (Thanks Spielstein!)
* ruRU.lua - Russian client (Thanks  ZamestoTV!) 

My Other Addons:
================
* Tabard Addict - tracks how many tabards have been equipped for the various tabard achievements.
* Faction Addict - provides extra faction information and logging for those working on reputation gains.


Changelog:
==========
(see full changelog history in readme.txt file of BelowAverageItems addon folder)

v1.66 (2026-06-16)
------------------
* Update for 12.0.7

v1.65 (2026-04-22)
------------------
* Update for 12.0.5

v1.64 (2026-02-25)
------------------
* Update for 12.0.1

v1.63 (2026-01-21)
------------------
* Update for 12.0.0

v1.62 (2025-12-02)
------------------
* Update for 11.2.7

v1.61 (2025-11-02)
------------------
* Added Russian client (ruRU) localization by ZamestoTV.

v1.60 (2025-11-01)
------------------
* BUGFIX: Another bug fix related to Artifact type weapons (Legion) - issue was introduced during code cleanup changes a few months ago: setIndicator() method should be bai_setIndicator(). Thanks to Samnthar for reporting with error dump!

v1.59 (2025-10-25)
------------------
* Update for 11.2.5

v1.58 (2025-09-27)
------------------
* Possible fix for Artifact type weapons with offhand component. A few bugs related to recent code cleanup may have contributed to this. Thanks to 'ladysilverwolf01' for the report.

v1.57 (2025-08-05)
------------------
* Update for 11.2.0

v1.56 (2025-07-12)
------------------
* Code Optimization / Cleanup: Changes should not be noticeable but please report anything that seems buggy.

v1.55 (2025-06-17)
------------------
* Update for 11.1.7
* BUGFIX: Icons should now update properly when gear is removed/swapped and not require a ui reload.
* Code Optimization / Cleanup: Changes should not be noticeable but please report anything that seems buggy.

v1.54 (2025-04-25)
------------------
* Update for 11.1.5

v1.53 (2025-02-25)
------------------
* Update for 11.1.0
* Addon category: Equipment

v1.52 (2024-12-17)
------------------
* Update for 11.0.7

v1.51 (2024-10-22)
------------------
* Update for 11.0.5

v1.50 (2024-08-14)
------------------
* Update for 11.0.2

v1.49 (2024-07-24)
------------------
* Update for 11.0

v1.48 (2024-05-07)
------------------
* Update for 10.2.7

v1.47 (2024-03-20)
------------------
* Update for 10.2.6

v1.46 (2024-01-19)
------------------
* Update for 10.2.5

v1.45 (2023-11-07)
------------------
* Update for 10.2.0

v1.44 (2023-09-06)
------------------
* Update for 10.1.7

v1.43 (2023-07-11)
------------------
* Update for 10.1.5

v1.42 (2023-05-03)
------------------
* Update for 10.1.0
* Defined icon for addon list.

v1.41 (2023-03-21)
------------------
* Update for 10.0.7

v1.40 (2023-01-24)
------------------
* Updated for 10.0.5

v1.39 (2022-11-19)
------------------
* Updated for 10.0.2

v1.38 (2022-10-29)
------------------
* Updated for 10.0
* Tooltip color tweak: color of item level now matches icon. (yellow/red)
* Thanks: karpana (curseforge) for feedback.
* Tech notes: Moved textureSubLevel to proper <Layer> element.

v1.37 (2022-02-26)
------------------
* Updated for 9.2

v1.36 (2021-11-03)
------------------
* Updated for 9.1.5

v1.35 (2021-06-29)
------------------
* Updated for 9.1

v1.34 (2021-03-11)
------------------
* Updated for 9.0.5

v1.33 (2020-11-18)
------------------
* Verision update for wow patch 9.0.2

v1.32 (2020-10-15)
------------------
* Verision update for wow patch 9.0. 

v1.31 (2020-01-14)
------------------
* Version update for wow patch 8.3.

v1.30 (2019-06-26)
------------------
* Version update for wow patch 8.2.

v1.29 (2018-12-15)
------------------
* Another 8.1 compatibility update.

v1.28 (2018-12-12)
------------------
* Version update for wow patch 8.1. 

v1.27 (2018-07-18)
------------------
* fix for lua error on equipment change event. (thanks to reaper66673563371 for the report!)

v1.26 (2018-07-18)
------------------
* update for Battle for Azeroth pre-patch 8.0
* If you encounter issues please let us know.

v1.25 (2017-08-29)
------------------
* toc update for wow patch 7.3

v1.24 (2017-03-28)
------------------
* Update for wow patch 7.2

v1.23 (2016-10-25)
------------------
* Update for wow patch 7.1

v1.22 (2016-10-12)
------------------
* New Locale - (deDE) German - Thanks Spielstein!

v1.21 (2016-10-09)
------------------
* New Locale - (esES) Spanish - Thanks MrUrkaz!
* New Locale - (ptBR) Portuguese - Thanks MrUrkaz!

v1.20 (2016-10-03)
------------------
* BUGFIX - another fix for dual slot artifacts - previous fix only worked for dual slot artifact weapons that had the relics in offhand slot. This fix did not work for dual slot artifacts with the relics in the main hand slot. This has been changed to prioritize which ever hand has the relics and treat that as iLvl for both hands. Thank you for the bug reports and keep sending what you find. Thanks!

v1.19 (2016-10-03)
------------------
* BUGFIX - Dual slot Artifact weapons would show the incorrect item level. This has now been fixed. It appears the Main Hand slot always returns a item level of 750 even when scraping the tooltip. But the Secondary Hand slot returns the correct item level for the artifact weapon. So in the case of dual slot artifacts the value from the Secondary Hand slot will be used for display purposes. Please continue reporting any bugs you may find. Thanks!

v1.18 (2016-9-12)
------------------
* The item level for offhand artifact weapons is now ignored - as the main hand represents the real item level of an artifact.

v1.17 (2016-7-19)
------------------
* updates to work with WoW 7.0+ - Legion pre-expansion patch
* NOTE: The addon changes have been tested on PTR version 7.0.3.22210. Please report any issues you find on Live version.

v1.16 (2016-4-15)
------------------
* updated to support Timewarped item levels. (Thanks to triques for bug report!) Please let me know if this update does not fix the issue or causes any other side issues for those of you using it. Thanks!
* Heirloom items now also marked like regular gear.

v1.15 (2015-12-06)
------------------
* no functional changes - code cleanup

v1.14 (2015-06-23)
------------------
* Updated for 6.2

v1.13 (2015-02-24)
------------------
* Updated for 6.1

v1.12 (2014-10-14)
------------------
* WoW version 6.0 compatibility release.
* Added /bai command to report current version of addon in chat window

v1.11 (2013-9-10)
------------------
* Update for WoW 5.4.

v1.10 (2013-5-30)
------------------
* Changed workaround for upgraded item levels to use Phanx HiddenTooltip class.

v1.09 (2013-5-21)
------------------
* Update for WoW 5.3.

v1.08 (2013-3-25)
------------------
* BUGFIX - fix for lua errors when character has the new 5.2 upgradeable items

v1.07 (2013-3-5)
------------------
* Update for client 5.2.

v1.06 (2013-1-8)
------------------
* Additional workaround for upgraded item levels. (Thanks ckaotik!)

v1.05 (2013-1-2)
------------------
* Workaround to calculate upgraded item levels put in place. (Blizzard please support via api soon!)
* Happy New Year!

v1.04 (2012-11-28)
------------------
* updated for client 5.1

v1.03 (2012-8-28)
------------------
* Updates for Mists of Pandaria
* Removal of RangedSlot

v1.02 (2012-5-13)
------------------
* Added red visual indicator marking LOWEST level item(s).
* Fixed OnShow refreshing.

v1.01 (2012-5-7)
------------------
* Initial release of Below Average Items (BAI)
