forked from OpenWF/SpaceNinjaServer
		
	reset 'high score' at week rollover
This commit is contained in:
		
							parent
							
								
									5da66a1b3b
								
							
						
					
					
						commit
						f609850c0c
					
				@ -21,10 +21,12 @@ export const entratiLabConquestModeController: RequestHandler = async (req, res)
 | 
				
			|||||||
        inventory.EntratiVaultCountResetDate = new Date(weekEnd);
 | 
					        inventory.EntratiVaultCountResetDate = new Date(weekEnd);
 | 
				
			||||||
        if (inventory.EntratiLabConquestUnlocked) {
 | 
					        if (inventory.EntratiLabConquestUnlocked) {
 | 
				
			||||||
            inventory.EntratiLabConquestUnlocked = 0;
 | 
					            inventory.EntratiLabConquestUnlocked = 0;
 | 
				
			||||||
 | 
					            inventory.EntratiLabConquestCacheScoreMission = 0;
 | 
				
			||||||
            inventory.EntratiLabConquestActiveFrameVariants = [];
 | 
					            inventory.EntratiLabConquestActiveFrameVariants = [];
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        if (inventory.EchoesHexConquestUnlocked) {
 | 
					        if (inventory.EchoesHexConquestUnlocked) {
 | 
				
			||||||
            inventory.EchoesHexConquestUnlocked = 0;
 | 
					            inventory.EchoesHexConquestUnlocked = 0;
 | 
				
			||||||
 | 
					            inventory.EchoesHexConquestCacheScoreMission = 0;
 | 
				
			||||||
            inventory.EchoesHexConquestActiveFrameVariants = [];
 | 
					            inventory.EchoesHexConquestActiveFrameVariants = [];
 | 
				
			||||||
            inventory.EchoesHexConquestActiveStickers = [];
 | 
					            inventory.EchoesHexConquestActiveStickers = [];
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user