Skip to content

Loadout CSV: Fill Artifact Season/Unlocks columns with new artifact info where possible - #11966

Open
FlaminSarge wants to merge 3 commits into
masterfrom
artifact
Open

Loadout CSV: Fill Artifact Season/Unlocks columns with new artifact info where possible#11966
FlaminSarge wants to merge 3 commits into
masterfrom
artifact

Conversation

@FlaminSarge

Copy link
Copy Markdown
Contributor

Also update the text on shared loadouts to indicate that socket overrides could be subclass or artifact
Also fixes an issue where share sheet would show incorrect mod counts

Changelog: Loadout CSV export now handles new artifacts

Related: DestinyItemManager/dim-api#316

Recreation of #11962

Comment on lines +173 to 183
'Artifact Season':
artifact?.item.name || loadout.parameters?.artifactUnlocks?.seasonNumber || '',
'Artifact Unlocks': (
artifact?.item.sockets?.allSockets?.map(
(s) => artifact?.loadoutItem.socketOverrides?.[s.socketIndex] || 0,
) ||
loadout.parameters?.artifactUnlocks?.unlockedItemHashes ||
[]
).map(
(modHash) => (modHash && defs.InventoryItem.get(modHash)?.displayProperties.name) || '',
),

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This might end up creating empty-value columns where previously it would omit the columns if none of the loadouts had the column available. I don't know if that's permissible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant