API:2/items Infix_upgrade_subobject

API:2/items Infix_upgrade_subobject

in API Development

Posted by: Elfo Bianco.3786

Elfo Bianco.3786

Hello, I’m updating the tooltips for items in my App and I have noticed that the infix_upgrade object still has the buff subobject.
Is buff subobject still used for some items or not?
I have checked some ascended trinkets that have already the right stats in attributes subobject, plus a buff subobject with additional stats that shouldn’t exist, sometimes with “+5 agony resistance” too.
I know that about ascended items buff subobject was used with an older version of API:2/items, but if it is no more used it should be totally removed for every items.
I don’t even understand what the skill_id key means in buff subobject.

API:2/items Infix_upgrade_subobject

in API Development

Posted by: Elfo Bianco.3786

Elfo Bianco.3786

Maybe the buff subobject is used by Sigils only.
As written on https://wiki.guildwars2.com/wiki/API:2/items the buff subobject should be optional, so I think that it must be removed where not needed and we can check what to read from API:2/items for enanched descriptions; only attributes array, or buff subobject, or both but different each other.

API:2/items Infix_upgrade_subobject

in API Development

Posted by: ezd.6359

ezd.6359

I asked almost the same here (may be not so clear)
https://forum-en.gw2archive.eu/forum/community/api/State-of-buff-in-items-stats-now/

Still no answer. I don’t know what to do :/

English is not my native language, sorry :<

API:2/items Infix_upgrade_subobject

in API Development

Posted by: Elfo Bianco.3786

Elfo Bianco.3786

I asked almost the same here (may be not so clear)
https://forum-en.gw2archive.eu/forum/community/api/State-of-buff-in-items-stats-now/

Still no answer. I don’t know what to do :/

Hi ezd, as I wrote above seems that the buff subobject is used by sigils only, so for all the other items I actually use only the attributes subobject, or you can check if attributes is empty/null and then check if buff is not, but buff is always the only thing that gives info for sigils.
Anyway lot of buff subobjects are even wrong as well as a repetition of attributes subobject. Indeed the example you wrote in your post has the right attributes subobject but not the right buff subobject. Now ascended (infused) items have infusion slots and not a “+5 Agony Resistance” attribute.