fix(webui): don't show unreleased relics in add items

This commit is contained in:
Sainan 2025-03-02 12:01:49 +01:00
parent bbc40d5534
commit 22456559d0

View File

@ -108,10 +108,12 @@ const getItemListsController: RequestHandler = (req, response) => {
name = name.split("|FISH_SIZE|").join(getString("/Lotus/Language/Fish/FishSizeSmallAbbrev", lang)); name = name.split("|FISH_SIZE|").join(getString("/Lotus/Language/Fish/FishSizeSmallAbbrev", lang));
} }
} }
res.miscitems.push({ if (uniqueName.substr(0, 30) != "/Lotus/Types/Game/Projections/") {
uniqueName: item.productCategory + ":" + uniqueName, res.miscitems.push({
name: name uniqueName: item.productCategory + ":" + uniqueName,
}); name: name
});
}
} }
for (const [uniqueName, item] of Object.entries(ExportGear)) { for (const [uniqueName, item] of Object.entries(ExportGear)) {
res.miscitems.push({ res.miscitems.push({