返回提交历史
Modified
src/controllers/custom/getItemListsController.ts
+19
-11
XFEstudio/XFESpaceNinjaServer
feat(webui): add railjack components to add items datalist (#3684)
Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/3684 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
2e4c84ad
代码差异
1 个文件
+19
-11
@@ -334,17 +334,25 @@ const getItemListsController: RequestHandler = (req, response) => {
334
334
});
335
335
}
336
336
for (const [uniqueName, item] of Object.entries(ExportCustoms)) {
337
if (
338
item.productCategory == "WeaponSkins" &&
339
!uniqueName.startsWith("/Lotus/Types/Game/Lotus") && // Base Items
340
!uniqueName.endsWith("ProjectileSkin") && // UnrealTournament ProjectileSkins
341
!uniqueName.endsWith("Coat") // Frost Prime stuff
342
) {
343
res.WeaponSkins.push({
344
uniqueName: uniqueName,
345
name: getString(item.name, lang),
346
alwaysAvailable: item.alwaysAvailable
347
});
337
if (item.productCategory == "WeaponSkins") {
338
if (
339
!uniqueName.startsWith("/Lotus/Types/Game/Lotus") && // Base Items
340
!uniqueName.endsWith("ProjectileSkin") && // UnrealTournament ProjectileSkins
341
!uniqueName.endsWith("Coat") // Frost Prime stuff
342
) {
343
res.WeaponSkins.push({
344
uniqueName: uniqueName,
345
name: getString(item.name, lang),
346
alwaysAvailable: item.alwaysAvailable
347
});
348
}
349
} else /*if (item.productCategory == "CrewShipWeaponSkins")*/ {
350
if (!item.alwaysAvailable) {
351
res.miscitems.push({
352
uniqueName: uniqueName,
353
name: getString(item.name, lang)
354
});
355
}
348
356
}
349
357
}
350
358