[b]Node progress and material requirements. [/b]
Under talentgrid definitions / nodes / steps:
- startProgressionBarAtProgress is incorrect for the duo / trio of primary stat increase nodes. They tend to all have the same value.
- can't find how to accurately interpolate talentgrid nodes to progression definition steps
- can't find which materialRequirements set applies to a given item instance where planetary materials are involved.
What I'm trying to determine is progression left on an item and materials required to Activate unlocked nodes for an item manager app.
[b]UPDATE[/b]
Thanks to Rikkert2x for showing me that I should be using [url=https://www.bungie.net/platform/destiny/help/HelpDetail/GET?uri=%7bmembershipType%7d%2fAccount%2f%7bdestinyMembershipId%7d%2fCharacter%2f%7bcharacterId%7d%2fInventory%2f%7bitemInstanceId%7d%2f]the detailed item instance API[/url]. This seems to expand out the material requirements and conveniently each node has detailed states.
Take my "[url=https://www.bungie.net/platform/Destiny/2/Account/4611686018441311466/Character/2305843009253339356/inventory/6917529044184197240/?lc=en&ftm=true&lcin=true&definitions=true]Hadronic Essence[/url]"
"startProgressionBarAtProgress"
when [b]Response->data->item->progression->currentProgress[/b] is greater then [b]startProgressionBarAtProgress[/b] of an perk, that Perk is now gaining progress pont to complete the perk,
progressPercent: [b]Response->data->talentNodes->[x]->progressPercent[/b]
"progression definition steps"
The amount of progress points to 100% is not defined but can be calculated:
(([b]currentProgress[/b]-[b]Start[/b])/[b]progressPercent[/b])*100 =[b] ProgressToComplete[/b]
((114.690-110.000)/17,0545464)*100 = 27.500
[b]Start[/b]+[b]ProgressToComplete[/b]-[b]currentProgress[/b] = [b]ProgressLeft[/b]
110.000+27.500-114.690 = 22.810
[b]currentProgress[/b]-[b]Start[/b] = [b]ProgressGained[/b]
114.690-110.000 = 4.690
"planetary materials"
This is not defined and the best way for this is to store the itemHash of each planetary meterial.
( tierTypeName => Common & itemTypeName => Material ) will pick hadronic essence as wel.
Ah, what I was missing was to use this API:
[quote]/{membershipType}/Account/{destinyMembershipId}/Character/{characterId}/Inventory/{itemInstanceId}/[/quote]
I was just using:
[quote]/{membershipType}/Account/{destinyMembershipId}/Character/{characterId}/Inventory/[/quote]
Which provides all items on the character, but doesn't include [b]materialItemHashes[/b], [b]statsOnNodes[/b], or [b]talentNodes[/b]. So thank you for pointing this API out to me. This solves some of the problems I was having.