From b15a635e11f13bbebfee5da12f305acc27033eb9 Mon Sep 17 00:00:00 2001 From: Sainan <63328889+Sainan@users.noreply.github.com> Date: Sat, 2 Aug 2025 04:57:08 -0700 Subject: [PATCH] fix(webui): exclude zaw strike pvp variants (#2579) Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/2579 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com> --- .../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 (