fix(webui): exclude zaw strike pvp variants
All checks were successful
Build / build (pull_request) Successful in 52s

This commit is contained in:
Sainan 2025-08-01 17:28:01 +02:00
parent 7e618539fa
commit c49be3b99e

View File

@ -153,18 +153,21 @@ const getItemListsController: RequestHandler = (req, response) => {
} }
for (const [uniqueName, item] of Object.entries(ExportWeapons)) { for (const [uniqueName, item] of Object.entries(ExportWeapons)) {
if (item.partType) { if (item.partType) {
if (!uniqueName.startsWith("/Lotus/Types/Items/Deimos/")) { if (!item.excludeFromCodex) {
res.ModularParts.push({ // not a pvp variant
uniqueName, if (!uniqueName.startsWith("/Lotus/Types/Items/Deimos/")) {
name: getString(item.name, lang), res.ModularParts.push({
partType: item.partType uniqueName,
}); name: getString(item.name, lang),
} partType: item.partType
if (uniqueName.split("/")[5] != "SentTrainingAmplifier") { });
res.miscitems.push({ }
uniqueName: uniqueName, if (uniqueName.split("/")[5] != "SentTrainingAmplifier") {
name: getString(item.name, lang) res.miscitems.push({
}); uniqueName: uniqueName,
name: getString(item.name, lang)
});
}
} }
} else if (item.totalDamage !== 0) { } else if (item.totalDamage !== 0) {
if ( if (