diff --git a/src/controllers/custom/getItemListsController.ts b/src/controllers/custom/getItemListsController.ts index bb101af9..6534bf92 100644 --- a/src/controllers/custom/getItemListsController.ts +++ b/src/controllers/custom/getItemListsController.ts @@ -26,11 +26,11 @@ interface ListedItem { } const relicQualitySuffixes: Record = { - "VPQ_BRONZE": "", - "VPQ_SILVER": " [Flawless]", - "VPQ_GOLD": " [Radiant]", - "VPQ_PLATINUM": " [Exceptional]", -} + VPQ_BRONZE: "", + VPQ_SILVER: " [Flawless]", + VPQ_GOLD: " [Radiant]", + VPQ_PLATINUM: " [Exceptional]" +}; const getItemListsController: RequestHandler = (req, response) => { const lang = getDict(typeof req.query.lang == "string" ? req.query.lang : "en"); @@ -127,7 +127,12 @@ const getItemListsController: RequestHandler = (req, response) => { for (const [uniqueName, item] of Object.entries(ExportRelics)) { res.miscitems.push({ uniqueName: "MiscItems:" + uniqueName, - name: getString("/Lotus/Language/Relics/VoidProjectionName", lang).split("|ERA|").join(item.era).split("|CATEGORY|").join(item.category) + relicQualitySuffixes[item.quality] + name: + getString("/Lotus/Language/Relics/VoidProjectionName", lang) + .split("|ERA|") + .join(item.era) + .split("|CATEGORY|") + .join(item.category) + relicQualitySuffixes[item.quality] }); } for (const [uniqueName, item] of Object.entries(ExportGear)) {