XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

SpaceNinjaServer

A simple server for a small space ninja game

公开
关注 0 Fork 1 Star 0
返回提交历史

XFEstudio/SpaceNinjaServer

chore(webui): put all ModularParts in itemLists (#1383)

Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/1383 Reviewed-by: Sainan <sainan@calamity.inc> Co-authored-by: AMelonInsideLemon <166175391+AMelonInsideLemon@users.noreply.github.com> Co-committed-by: AMelonInsideLemon <166175391+AMelonInsideLemon@users.noreply.github.com>

b6167165
AMelonInsideLemon <166175391+AMelonInsideLemon@users.noreply.github.com>
提交于

代码差异

1 个文件 +1 -11
Modified src/controllers/custom/getItemListsController.ts +1 -11
@@ -68,17 +68,7 @@ const getItemListsController: RequestHandler = (req, response) => {
68 68 }
69 69 }
70 70 for (const [uniqueName, item] of Object.entries(ExportWeapons)) {
71 if (
72 uniqueName.split("/")[4] == "OperatorAmplifiers" ||
73 uniqueName.split("/")[5] == "SUModularSecondarySet1" ||
74 uniqueName.split("/")[5] == "SUModularPrimarySet1" ||
75 uniqueName.split("/")[5] == "InfKitGun" ||
76 uniqueName.split("/")[5] == "HoverboardParts" ||
77 uniqueName.split("/")[5] == "ModularMelee01" ||
78 uniqueName.split("/")[5] == "ModularMelee02" ||
79 uniqueName.split("/")[5] == "ModularMeleeInfested" ||
80 uniqueName.split("/")[6] == "CreaturePetParts"
81 ) {
71 if (item.partType) {
82 72 res.ModularParts.push({
83 73 uniqueName,
84 74 name: getString(item.name, lang),