apoch on master
/v2/pvp/seasons: add .ranks. Merge pull request #535 from ar… (compare)
apoch on master
add missing name tag to /v2/rac… Merge pull request #609 from Th… (compare)
Item stats attributes is now a mixture of old and new types and styles
by bunty.4610 in API DevelopmentThis is a mess to parse.
{
"id": 69,
"name": "",
"attributes": {
"Power": 3.24,
"Toughness": 2.31,
"Vitality": 2.31
}
Can someone who has had a glance at the new output of itemstats explain "value" + "multiplier" and what exactly we can do with them?
It looks a bit to me like "multiplier" gives the ratio of each stat to each other, and usually sums to somewhere between 0.85 and 1.15
"value" looks a bit like some kind of scaled prefix value in the range 18-32 for 3 attribute prefixes, 13-13 for celestial items, or 12-25 for 4 attribute prefixes
hidden_item_number * multiplier + value
where multiplier and value are from the itemstat response.hidden_item_number
isn't exposed anywhere, but I'd like to do so in v2/items/:id
341.44
round(341.44 * 0.25 + 0) == 85