diff --git a/src/controllers/custom/getItemListsController.ts b/src/controllers/custom/getItemListsController.ts index 6fe5b0db..ba5be15e 100644 --- a/src/controllers/custom/getItemListsController.ts +++ b/src/controllers/custom/getItemListsController.ts @@ -153,18 +153,21 @@ const getItemListsController: RequestHandler = (req, response) => { } for (const [uniqueName, item] of Object.entries(ExportWeapons)) { if (item.partType) { - if (!uniqueName.startsWith("/Lotus/Types/Items/Deimos/")) { - res.ModularParts.push({ - uniqueName, - name: getString(item.name, lang), - partType: item.partType - }); - } - if (uniqueName.split("/")[5] != "SentTrainingAmplifier") { - res.miscitems.push({ - uniqueName: uniqueName, - name: getString(item.name, lang) - }); + if (!item.excludeFromCodex) { + // not a pvp variant + if (!uniqueName.startsWith("/Lotus/Types/Items/Deimos/")) { + res.ModularParts.push({ + uniqueName, + name: getString(item.name, lang), + partType: item.partType + }); + } + if (uniqueName.split("/")[5] != "SentTrainingAmplifier") { + res.miscitems.push({ + uniqueName: uniqueName, + name: getString(item.name, lang) + }); + } } } else if (item.totalDamage !== 0) { if ( diff --git a/static/webui/index.html b/static/webui/index.html index 0c0bd3c6..b827fc45 100644 --- a/static/webui/index.html +++ b/static/webui/index.html @@ -388,11 +388,11 @@