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

Also apply infiniteResources on inventoryController response (#144)

e561df1a
Sainan <sainan@calamity.gg>
提交于

代码差异

1 个文件 +7 -0
Modified src/controllers/api/inventoryController.ts +7 -0
@@ -34,6 +34,13 @@ const inventoryController: RequestHandler = async (request: Request, response: R
34 34
35 35 const inventoryResponse = toInventoryResponse(inventoryJSON);
36 36
37 if (config.infiniteResources) {
38 inventoryResponse.RegularCredits = 999999999;
39 inventoryResponse.TradesRemaining = 999999999;
40 inventoryResponse.PremiumCreditsFree = 999999999;
41 inventoryResponse.PremiumCredits = 999999999;
42 }
43
37 44 if (config.unlockAllMissions) inventoryResponse.Missions = allMissions;
38 45 if (config.unlockAllQuests) inventoryResponse.QuestKeys = allQuestKeys;
39 46