feat(webui): add relics via "add items" #1066
@ -26,11 +26,11 @@ interface ListedItem {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
const relicQualitySuffixes: Record<TRelicQuality, string> = {
 | 
			
		||||
    "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)) {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user