返回提交历史
Modified
src/controllers/custom/getItemListsController.ts
+9
-7
Modified
static/webui/script.js
+1
-1
XFEstudio/SpaceNinjaServer
fix(webui): unable to add relics (#1222)
Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/1222
7b866a2f
代码差异
2 个文件
+10
-8
@@ -192,14 +192,16 @@ const getItemListsController: RequestHandler = (req, response) => {
192
192
});
193
193
}
194
194
for (const [uniqueName, arcane] of Object.entries(ExportArcanes)) {
195
const mod: ListedItem = {
196
uniqueName,
197
name: getString(arcane.name, lang)
198
};
199
if (arcane.isFrivolous) {
200
mod.badReason = "frivolous";
195
if (uniqueName.substring(0, 18) != "/Lotus/Types/Game/") {
196
const mod: ListedItem = {
197
uniqueName,
198
name: getString(arcane.name, lang)
199
};
200
if (arcane.isFrivolous) {
201
mod.badReason = "frivolous";
202
}
203
res.mods.push(mod);
201
204
}
202
res.mods.push(mod);
203
205
}
204
206
for (const [uniqueName, syndicate] of Object.entries(ExportSyndicates)) {
205
207
res.Syndicates.push({
@@ -230,7 +230,7 @@ function fetchItemList() {
230
230
if (type == "Syndicates" && item.uniqueName.startsWith("RadioLegion")) {
231
231
item.name += " (" + item.uniqueName + ")";
232
232
}
233
if (item.uniqueName.substr(0, 18) != "/Lotus/Types/Game/" && item.badReason != "notraw") {
233
if (item.badReason != "notraw") {
234
234
const option = document.createElement("option");
235
235
option.setAttribute("data-key", item.uniqueName);
236
236
option.value = item.name;