JavaScript is required to use Bungie.net

Group Avatar

BungieNetPlatform

"Updates, discussions, and documentation of the BungieNetPlatform API."

Request Join
originally posted in:BungieNetPlatform
Edited by Beerfrogs Beard: 1/19/2017 4:46:09 AM
2

Unadjusted Stat Nodes (Int, Dis, Str)

I'm working on a personal application that I can use to easily determine whether or not I want to keep a piece of armor (trying to stave off my hoarding ways and make some room). As a part of it I'm looking at stat quality. I was looking at the statsOnNodes section in /Platform/Destiny/{membershipType}/Account/{destinyMembershipId}/Character/{characterId}/Inventory/{itemInstanceId}/ And it looks to have the data I'm after, however, I haven't been able to determine how to easily tell which array to look at under Response.data.statsOnNodes. It looks like most legendary items (that I have) are under zero. However, exotics appear to follow a different set of rules. Then I tried looking at the first item in the array, and that did seem to work for MOST items, but not all. Is there an easier more reliable way to get to the unadjusted stat values for Int, Dis, and Str? I tried looking through the talentGridHash, but nothing jumped out at me. I'm using /Inventory/Summary/ to get the items and then Inventory/{itemInstanceId}/ to get the additional detail. I'm also using the Manifest for most xrefs. I've viewed the following threads, and while helpful I didn't see the answer to my exact question (or maybe they do and I just don't understand): https://www.bungie.net/en/Clan/Post/39966/194917560/0/0 https://www.bungie.net/en/Clan/Post/39966/206417491/0/0 If you have any questions or need any additional information or points of clarity, let me know. Thanks in advance for your help! PS - I love being able to use the API! I still recall screen scraping Halo 3 data into SQL Server many many years ago. Edit: A visual representation of what I mean. How can I programmatically know that 4 has the values I'm seeking? http://imgur.com/a/YCRCe

Posting in language:

 

Play nice. Take a minute to review our Code of Conduct before submitting your post. Cancel Edit Create Fireteam Post

View Entire Topic
  • Edited by GeekyEggo: 1/20/2017 12:48:07 PM
    It sounds like you're close to answering your own question, but hopefully this will help too. You're spot on with regards to the talent grid. Used in conjunction with the nodes from the item, and some very nice people, it's possible to calculate the stats quick [i]easily[/i]. [url=http://destinytailor.com]DestinyTailor.com[/url] uses the [url=https://github.com/GeekyEggo/DestinyTailor/blob/master/client/js/models/itemStatParser.js]itemStatParser.js[/url]. Check out the method "assignStatBonuses" in particular to highly how the talent grid is used. It's also worth noting, that with this approach it's possible to calculate stats from a character's inventory, which doesn't mean we have to do a request per item instance! :)

    Posting in language:

     

    Play nice. Take a minute to review our Code of Conduct before submitting your post. Cancel Edit Create Fireteam Post

    3 Replies
    You are not allowed to view this content.
    ;
    preload icon
    preload icon
    preload icon