Skip to content

Conversation

@FlaminSarge
Copy link
Contributor

Closes #11352

Changelog: Add the ability to select exotic class item perks in Loadout Optimizer

return updateLoadout(state, setLoadoutParameters({ exoticArmorHash: undefined }));
return updateLoadout(
state,
setLoadoutParameters({ exoticArmorHash: undefined, perks: [] }),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This would somehow need to be aware of which perks to remove when an exo class item is removed, instead of just wiping them entirely.

Comment on lines +574 to +579
for (const r of removed) {
const index = perks.indexOf(r);
if (index !== -1) {
perks.splice(index, 1);
}
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I couldn't find a better way to do this that worked with the 'multiple instances of a perk' handling.

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.

LO: Build an exotic class item perk picker

2 participants