Bungie-net / api

Resources for the Bungie.net API
Other
1.22k stars 92 forks source link

Xur's weapon ReusablePlugItems do not match up with in game perks #1880

Closed gsfernandes81 closed 5 months ago

gsfernandes81 commented 6 months ago

I have been trying to get weapon perks for Hawkmoon from Xur for a while now and from what I understand, the current perks on the weapon are the ones in reusablePlugItems -> plugItemHash .

This is part of the response I am getting from the API when querying the Vendors API from Xur:

{
  'defaultVisible': True,
  'hidePerksInItemTooltip': False,
  'overridesUiAppearance': False,
  'plugSources': 2,
  'preventInitializationOnVendorPurchase': False,
  'preventInitializationWhenVersioning': False,
  'randomizedPlugSetHash': 2908803440,
  'reusablePlugItems': [{'plugItemHash': 712324018}],
  'singleInitialItemHash': 712324018,
  'socketTypeHash': 1215804697
}

and the plugItemHash 712324018 corresponds to "Transformative" as opposed to Opening Shot which it is supposed to be today. None of the other items or even other weapons perks seem to match up either

I am making my request to the /Platform/Destiny2/{membershipType}/Profile/{destinyMembershipId}/Character/{characterId}/Vendors/{vendorHash}/?components=300,302,305,306,307,308,310,402 endpoint (Some components are unneeded and I will be removing them after resolving this issue)

Any help would be greatly appreciated!

gsfernandes81 commented 5 months ago

Found the issue with what I was doing. I was looking at the "sales" part of the response but not at the "itemComponents" part of it that includes both sockets and plugs.