返回提交历史
Modified
src/controllers/custom/getItemListsController.ts
+15
-12
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
代码差异
1 个文件
+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 (