LibReforgingInfo-1.0

Libraries Login to Add Favorites
  • 0 Likes
  • World of Warcraft
  • 95 Monthly Downloads
  • Supports: 4.3
  • 7,198 Total Downloads
  • Updated 11/29/2011 4:28:30 PM
  • Created 10/15/2010 8:16:47 AM
  • 5 Favorites
  • Project Site
  • Comments
  • Release Type: Release
  • License: GNU General Public License version 3 (GPLv3)
  • Newest File: 1.0.6
or

About LibReforgingInfo-1.0

LibReforgingInfo-1.0 provides information about the reforging applied to items, i.e. which stat was converted into which stat.

LibReforgingInfo-1.0 API

:GetReforgeID(itemString)

Returns

The reforging ID applied to the item.

Arguments

itemString
Item string or item link

:IsItemReforged(itemString)

Returns

true if the item is reforged, false otherwise.

Arguments

itemString
Item string or item link

:GetReforgedStatIDs(id)

Returns

Returns nil, nil if the item is not reforged. Otherwise, returns two numbers for the changed stats. The first number is the ID of the stat which was decreased, the second number is the ID of the stat that was increased. See below for a list of stat ids.

Arguments

id
Reforging ID (obtained by GetReforgeID)

:GetReforgedStatNames(id)

Returns

Returns nil, nil if the item is not reforged. Otherwise, returns two strings - the first is the name of the stat which was decreased, the second string is the name of the stat that was increased. The stat names are automatically localized.

Arguments

id
Reforging ID (obtained by GetReforgeID)

:GetReforgedStatShortNames(id)

Returns

Same as GetReforgedStatNames, but shorter names (e.g. "Mastery" instead of "Mastery rating").

Arguments

id
Reforging ID (obtained by GetReforgeID)

Stat IDs

As returned by GetReforgedStatIDs.

IDStat
1Spirit
2Dodge rating
3Parry rating
4Hit rating
5Crit rating
6Haste rating
7Expertise rating
8Mastery rating

Usage example

local ReforgingInfo = LibStub("LibReforgingInfo-1.0")
local item = GetInventoryItemLink("player", 1)
if ReforgingInfo:IsItemReforged(item) then
    DEFAULT_CHAT_FRAME:AddMessage(item .. " is reforged:")
    local minus, plus = ReforgingInfo:GetReforgedStatNames(ReforgingInfo:GetReforgeID(item))
    DEFAULT_CHAT_FRAME:AddMessage(minus .. " -> " .. plus)
end

tag 1.0.6
0ffb2a19c51bf835daf84362db81485883245741
emelio <emelio.wow@gmail.com>
2011-11-29 23:26:39 +0100

LibReforgingInfo-1.0 1.0.6:
- TOC bump for 4.3

--------------------

emelio:
    - TOC bump for 4.3

Addon Packs Containing This...

Comments

Learn how to disable ads
Learn how to disable ads
Login to Curse

Don't have an account? Create One.

Get an epic experience with Curse Premium
  • Faster addon downloads
  • Premium-Only Beta Giveaways
  • Ad-Free Curse experience
  • Premium Curse Client
  • and many More Features
  • Learn More »

Diablo III Giveaway

Enter Now!