JavaScript is required to use Bungie.net

服務提示
《天命2》將於今日暫時離線,以進行預計維修。請持續關注@BungieHelp,以獲取更多消息。

論壇

原先發佈於:BungieNetPlatform
原先發佈於: API Suggestions
由Rhagic編輯: 4/29/2015 2:44:50 PM
3
[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.
English

文章張貼語言:

 

以禮待人。發佈文章前請花點時間查看我們的行為準則 取消 編輯 創立火力戰隊 文章

  • 由Rikkert2x編輯: 4/29/2015 11:04:57 AM
    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.

    文章張貼語言:

     

    以禮待人。發佈文章前請花點時間查看我們的行為準則 取消 編輯 創立火力戰隊 文章

  • Let me know if you still have some problems, I might be able to help you out.

    文章張貼語言:

     

    以禮待人。發佈文章前請花點時間查看我們的行為準則 取消 編輯 創立火力戰隊 文章

你無權檢閱此內容
;
preload icon
preload icon
preload icon