返回提交历史
Modified
src/controllers/api/inventoryController.ts
+7
-0
XFEstudio/SpaceNinjaServer
Also apply infiniteResources on inventoryController response (#144)
e561df1a
代码差异
1 个文件
+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