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

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://goo.gl/Dg9OM
* curse - http://goo.gl/hzEVA

Official Homepage:
==================
http://goo.gl/ahZ2U

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!)

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:
==========

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)
