Skip to content

Commit

Permalink
Really fix Mandachord component images
Browse files Browse the repository at this point in the history
  • Loading branch information
DaPigGuy committed Oct 27, 2024
1 parent e53bff8 commit c605ae4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/utils/items.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ export function getComponentImageUrl(itemName, componentName, generic, hash) {
? ingredientSuffixes.find(suffix =>
componentName.endsWith(suffix)
) ?? componentName.replace(`${itemName} `, "")
: componentName + (hash ? "-" + hash : ""))
: componentName.replace(`${itemName} `, "") +
(hash ? "-" + hash : ""))
)
.split(" ")
.join("-")
Expand Down
4 changes: 1 addition & 3 deletions updater/update_items.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,7 @@ class ItemUpdater {
if (
ingredientRawName.includes("WeaponParts") ||
ingredientRawName.includes("WarframeRecipes") ||
ingredientRawName.includes("mechPart") ||
// WFCD warframe-items considers Mandachord components as generic despite there being no other variations of these components
ingredientRawName.includes("BardQuestSequencerPart")
ingredientRawName.includes("mechPart")
) {
ingredientData.generic = true;

Expand Down

0 comments on commit c605ae4

Please sign in to comment.