forked from OpenWF/SpaceNinjaServer
		
	Also apply infiniteResources on inventoryController response (#144)
This commit is contained in:
		
							parent
							
								
									4665bfc9fe
								
							
						
					
					
						commit
						e561df1af3
					
				@ -34,6 +34,13 @@ const inventoryController: RequestHandler = async (request: Request, response: R
 | 
			
		||||
 | 
			
		||||
    const inventoryResponse = toInventoryResponse(inventoryJSON);
 | 
			
		||||
 | 
			
		||||
    if (config.infiniteResources) {
 | 
			
		||||
        inventoryResponse.RegularCredits = 999999999;
 | 
			
		||||
        inventoryResponse.TradesRemaining = 999999999;
 | 
			
		||||
        inventoryResponse.PremiumCreditsFree = 999999999;
 | 
			
		||||
        inventoryResponse.PremiumCredits = 999999999;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    if (config.unlockAllMissions) inventoryResponse.Missions = allMissions;
 | 
			
		||||
    if (config.unlockAllQuests) inventoryResponse.QuestKeys = allQuestKeys;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user