Skip to content

Commit

Permalink
pnpm lint
Browse files Browse the repository at this point in the history
  • Loading branch information
delphiactual committed Dec 4, 2023
1 parent b0ecd94 commit b39e1e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/generate-unreferenced-collections-items.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ const craftableInventoryItemHashes = getAllDefs('InventoryItem')
const allCollectibles = getAllDefs('Collectible');

for (const item of craftableInventoryItemHashes) {
if (allCollectibles.find((c) => c.itemHash === item.hash)) continue;
if (allCollectibles.find((c) => c.itemHash === item.hash)) {continue;}
const targetCollectible = allCollectibles.find(
(c) => c.displayProperties.name === item.displayProperties.name,
);
if (targetCollectible) output[targetCollectible.hash] = item.hash;
if (targetCollectible) {output[targetCollectible.hash] = item.hash;}
}

writeFile('./output/unreferenced-collections-items.json', output);

0 comments on commit b39e1e7

Please sign in to comment.