WoW LibReforgingInfo-1.0 addon Dragonflight/Wrath of the Lich King Classic 2024
logo
wow addon LibReforgingInfo-1.0

LibReforgingInfo-1.0

Game Version: 6.0.2
Total Downloads: 15,459
Updated: Oct 15, 2014
Created: Oct 15, 2010
download LibReforgingInfo-1.0Download Earlier Versions

Earlier Versions

Name Size Uploaded Game Version Downloads
1.0.9 release 6.18 KB Oct 15, 2014 6.0.2 2,266 download LibReforgingInfo-1.0 1.0.9 releaseDownload
1.0.8 release 6.18 KB Mar 27, 2013 5.2.0 2,358 download LibReforgingInfo-1.0 1.0.8 releaseDownload
1.0.7 release 6.18 KB Aug 21, 2012 5.0.4 1,800 download LibReforgingInfo-1.0 1.0.7 releaseDownload
1.0.6 release 6.18 KB Nov 29, 2011 4.3.0 4,224 download LibReforgingInfo-1.0 1.0.6 releaseDownload
1.0.5 release 6.18 KB Jun 27, 2011 4.2.0 1,299 download LibReforgingInfo-1.0 1.0.5 releaseDownload
1.0.4 release 6.18 KB Apr 27, 2011 4.1.0 947 download LibReforgingInfo-1.0 1.0.4 releaseDownload
1.0.3 release 6.19 KB Nov 24, 2010 4.0.3a 1,191 download LibReforgingInfo-1.0 1.0.3 releaseDownload
1.0.1-release release 6.22 KB Oct 27, 2010 4.0.1 464 download LibReforgingInfo-1.0 1.0.1-release releaseDownload
1.0.1 release 6.24 KB Oct 27, 2010 4.0.1 94 download LibReforgingInfo-1.0 1.0.1 releaseDownload
1.0.0 release 6.30 KB Oct 18, 2010 4.0.1 374 download LibReforgingInfo-1.0 1.0.0 releaseDownload
1.0.6-1-g6a531fc alpha 6.10 KB Aug 21, 2012 5.0.4 45 download LibReforgingInfo-1.0 1.0.6-1-g6a531fc alphaDownload
r20101015134522 alpha 6.22 KB Oct 15, 2010 4.0.1 351 download LibReforgingInfo-1.0 r20101015134522 alphaDownload
r20101015132239 alpha 5.77 KB Oct 15, 2010 4.0.1 46 download LibReforgingInfo-1.0 r20101015132239 alphaDownload

Description

Share this:

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.

ID Stat
1 Spirit
2 Dodge rating
3 Parry rating
4 Hit rating
5 Crit rating
6 Haste rating
7 Expertise rating
8 Mastery 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

Comments

Add a comment