Closed joaopmarquesini closed 1 year ago
Good catch, thanks for the heads up. It looks like something changed on the game content side for 'deepsight' weapons with the release of Season 21.
I don't have an ETA for an API fix, but we'll look into this soon.
maybe something related to how deepsight weapons doesn't have an objective attached to it (as they can be "redeemed" immediately instead of needing to complete a progress bar as they were before)
It looks like the right way to do this now is by checking for an active tooltip notification with this display style string: ui_display_style_deepsight
"tooltipNotifications": [
{
"displayString": "This weapon's Pattern can be extracted.",
"displayStyle": "ui_display_style_deepsight"
}
]
We will also update the D2 API response to apply the ItemState.HighlightedObjective
to items that have an active tooltip with this display style.
On a side note:
DestinyVendorSaleItemComponent
doesn't have the tooltipNotificationIndexes
property, right ?
...well maybe they should! 😹
This should be fixed now for non-Vendor inventory items. No ETA yet on adding tooltip indices to vendor sale item components.
Nice! Btw ItemState was already right for vendor items
I just realized that Deepsight weapons doesn't return
ItemState.HighlightedObjective
anymore, is it intended behaviour ? Right now I'm using this snippet to find if weapons are deepsights, but it's a bit less performant than checking item.state.