Skip to content

Commit

Permalink
add upgrades to pinpointer
Browse files Browse the repository at this point in the history
  • Loading branch information
seiyria committed Sep 27, 2024
1 parent 56e37f0 commit 04b4726
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/app/helpers/data/extract-items.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,12 @@ export function extractAllItemsFromDialog(
.map((i) => i.item.name)
.filter(Boolean);

return allDialogItemNames
const allDialogItemUpgrades = allDialogWords
.filter((i) => i.upgrade)
.map((i) => i.upgrade)
.filter(Boolean);

return [...allDialogItemNames, ...allDialogItemUpgrades]
.map((i) => {
if (i.includes('${ baseClass }')) {
return validClasses.map((c) => i.split('${ baseClass }').join(c));
Expand Down

0 comments on commit 04b4726

Please sign in to comment.