Topic Determine initial value of a reforged stat?
Sellary
Uther
Sellary
90 Gnome Warrior
9835
Edited by Sellary on 12/25/12 12:20 AM (PST)
If I pull items along with character info, I get a list of items where reforged stats have already been adjusted-- however, the added stat is NOT included in this information. Is this a bug?

In fact, it's impossible to determine the initial value of the reforged stat because of the rounding done by the reforge calculation (floor of .4*initialValue).

For example, values 932 and 933 both get reduced to the same value (560) when reforged, so it's not possible to determine the initial value without also knowing the amount of stats that were added.

To get around this, I am currently pulling item info separately (single /api/wow/item call for each) but this is inefficient and doesn't work for upgraded items. If absolutely necessary, I could extend this approach to adjust the stats based on the upgrade level indicated in item info from the /api/wow/character call, but I don't know the algorithm Blizz uses for this, and it seems like there should be a better way regardless.

Is there something I'm overlooking?

EDIT: Here's an example...

http://us.battle.net/api/wow/character/Uther/Sellary?fields=items

Notice several items have reforge IDs in tooltipParams and reduced values for the reforged stats, but none of them include the added stat.
Chaud
Gurubashi
Chaud
90 Undead Mage
12400
It is intended that the character API items only return the stats they have for that player in game as far as I know. Just grab all of the items separately if you need the base stats.

See: http://us.battle.net/wow/en/forum/topic/7200051045#15

If you need base stats for each upgrade level, see the post below it.
Sellary
Uther
Sellary
90 Gnome Warrior
9835
It is intended that the character API items only return the stats they have for that player in game as far as I know.


That's the problem, though... it's not returning stats that are added through reforging.
Chaud
Gurubashi
Chaud
90 Undead Mage
12400
Store the item base / each upgrade level stats and then you can calculate it, right? I guess you would need the enchant stat additions as well...
Ulminia
Zangarmarsh
Ulminia
90 Night Elf Hunter
10500
when i pull my members for each member equip item i also pull the original item from the api to build the tooltip (and the set data as well if any) then im running the stats i compare the values from the original to the character one with a small margin of error because of the item upgrades i can get a baseline of how much of one stat was reforged to another based on the reforge id its the easiest way i could find to do it
Sellary
Uther
Sellary
90 Gnome Warrior
9835
Edited by Sellary on 12/25/12 1:55 PM (PST)
12/25/2012 11:12 AMPosted by Chaud
Store the item base / each upgrade level stats and then you can calculate it, right? I guess you would need the enchant stat additions as well...


12/25/2012 01:40 PMPosted by Ulminia
when i pull my members for each member equip item i also pull the original item from the api to build the tooltip (and the set data as well if any) then im running the stats i compare the values from the original to the character one with a small margin of error because of the item upgrades i can get a baseline of how much of one stat was reforged to another based on the reforge id its the easiest way i could find to do it


Yes, this is what I'm currently doing, only I'm not taking item upgrades into consideration because it would involve actually figuring out and implementing the upgrade formula, which I've heard is sort of complicated and relies on the internal stat weights and gem penalties. That, and I'm almost certain it's a bug (to not include the reforge-added stat in character item data) so it may be worth waiting for a fix.

Please report any Code of Conduct violations, including:

Threats of violence. We take these seriously and will alert the proper authorities.

Posts containing personal information about other players. This includes physical addresses, e-mail addresses, phone numbers, and inappropriate photos and/or videos.

Harassing or discriminatory language. This will not be tolerated.

Click here to view the Forums Code of Conduct.

Report Post # written by
Reason
Explain (256 characters max)

Reported!

[Close]