forked from OpenWF/SpaceNinjaServer
		
	fix: ignore non-weapon entries in ExportWeapons for recipe login reward (#1461)
Reviewed-on: OpenWF/SpaceNinjaServer#1461 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
This commit is contained in:
		
							parent
							
								
									5c22949c6b
								
							
						
					
					
						commit
						743a905de4
					
				@ -84,7 +84,7 @@ const getRandomLoginReward = (rng: CRng, day: number, inventory: TInventoryDatab
 | 
			
		||||
        }
 | 
			
		||||
        const unmasteredItems = new Set();
 | 
			
		||||
        for (const [uniqueName, data] of Object.entries(ExportWeapons)) {
 | 
			
		||||
            if (data.variantType == "VT_NORMAL" && !masteredItems.has(uniqueName)) {
 | 
			
		||||
            if (data.totalDamage != 0 && data.variantType == "VT_NORMAL" && !masteredItems.has(uniqueName)) {
 | 
			
		||||
                unmasteredItems.add(uniqueName);
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user