From c49be3b99eca3b5b3bc82c8d55ca6c04aa1f5fe2 Mon Sep 17 00:00:00 2001 From: Sainan <63328889+Sainan@users.noreply.github.com> Date: Fri, 1 Aug 2025 17:28:01 +0200 Subject: [PATCH] fix(webui): exclude zaw strike pvp variants --- .../custom/getItemListsController.ts | 27 ++++++++++--------- 1 file changed, 15 insertions(+), 12 deletions(-) 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 (