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

feat(webui): add everything in ExportCustoms as an "add items" option

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

代码差异

1 个文件 +7 -0
Modified src/controllers/custom/getItemListsController.ts +7 -0
@@ -3,6 +3,7 @@ import { getDict, getItemName, getString } from "@/src/services/itemDataService"
3 3 import {
4 4 ExportArcanes,
5 5 ExportAvionics,
6 ExportCustoms,
6 7 ExportDrones,
7 8 ExportGear,
8 9 ExportKeys,
@@ -171,6 +172,12 @@ const getItemListsController: RequestHandler = (req, response) => {
171 172 name: getString(item.name, lang)
172 173 });
173 174 }
175 for (const [uniqueName, item] of Object.entries(ExportCustoms)) {
176 res.miscitems.push({
177 uniqueName: uniqueName,
178 name: getString(item.name, lang)
179 });
180 }
174 181
175 182 res.mods = [];
176 183 for (const [uniqueName, upgrade] of Object.entries(ExportUpgrades)) {