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

XFESpaceNinjaServer

A simple server for a small space ninja game

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

XFEstudio/XFESpaceNinjaServer

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>

b15a635e
Sainan <63328889+Sainan@users.noreply.github.com>
提交于

代码差异

1 个文件 +15 -12
Modified src/controllers/custom/getItemListsController.ts +15 -12
@@ -153,18 +153,21 @@ const getItemListsController: RequestHandler = (req, response) => {
153 153 }
154 154 for (const [uniqueName, item] of Object.entries(ExportWeapons)) {
155 155 if (item.partType) {
156 if (!uniqueName.startsWith("/Lotus/Types/Items/Deimos/")) {
157 res.ModularParts.push({
158 uniqueName,
159 name: getString(item.name, lang),
160 partType: item.partType
161 });
162 }
163 if (uniqueName.split("/")[5] != "SentTrainingAmplifier") {
164 res.miscitems.push({
165 uniqueName: uniqueName,
166 name: getString(item.name, lang)
167 });
156 if (!item.excludeFromCodex) {
157 // not a pvp variant
158 if (!uniqueName.startsWith("/Lotus/Types/Items/Deimos/")) {
159 res.ModularParts.push({
160 uniqueName,
161 name: getString(item.name, lang),
162 partType: item.partType
163 });
164 }
165 if (uniqueName.split("/")[5] != "SentTrainingAmplifier") {
166 res.miscitems.push({
167 uniqueName: uniqueName,
168 name: getString(item.name, lang)
169 });
170 }
168 171 }
169 172 } else if (item.totalDamage !== 0) {
170 173 if (