Skip to content

Commit

Permalink
Merge pull request #10832 from DestinyItemManager/vendor-missing-sockets
Browse files Browse the repository at this point in the history
Don't always say vendor items are missing sockets
  • Loading branch information
chainrez authored Dec 8, 2024
2 parents b33b39a + b2c1049 commit ecec5e9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/app/inventory/store/sockets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ export function buildSockets(
itemDef: DestinyInventoryItemDefinition,
): { sockets: DimItem['sockets']; missingSockets: DimItem['missingSockets'] } {
let sockets: DimSockets | null = null;
let missingSockets: DimItem['missingSockets'] = false;
if ($featureFlags.simulateMissingSockets) {
itemComponents = undefined;
}
Expand Down Expand Up @@ -102,14 +103,14 @@ export function buildSockets(
const isInstanced = Boolean(item.itemInstanceId && item.itemInstanceId.length > 14);

// If this really *should* have live sockets, but didn't...
if (item.itemInstanceId !== '0' && !socketData) {
return { sockets: null, missingSockets: isInstanced ? 'missing' : 'not-loaded' };
if (isInstanced && !socketData) {
missingSockets = isInstanced ? 'missing' : 'not-loaded';
}

sockets = buildDefinedSockets(defs, itemDef);
}

return { sockets, missingSockets: false };
return { sockets, missingSockets };
}

/**
Expand Down

0 comments on commit ecec5e9

Please sign in to comment.