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

fix(webui): unable to add relics (#1222)

Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/1222

7b866a2f
Sainan <sainan@calamity.inc>
提交于

代码差异

2 个文件 +10 -8
Modified src/controllers/custom/getItemListsController.ts +9 -7
@@ -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({
Modified static/webui/script.js +1 -1
@@ -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;