Topic
Determine initial value of a reforged stat?
|
|
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. |
|
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. |
|
|
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. |
|
|
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
|
|
|
Edited by Sellary on 12/25/12 1:55 PM (PST)
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. |
