Update missionInventoryUpdateService.ts
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				Build / build (pull_request) Successful in 54s
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	Build / build (pull_request) Successful in 54s
				
			This commit is contained in:
		
							parent
							
								
									c5c1b55983
								
							
						
					
					
						commit
						a48813ba77
					
				@ -1227,11 +1227,13 @@ export const addMissionRewards = async (
 | 
				
			|||||||
                    ].some(ending => jobType.endsWith(ending))
 | 
					                    ].some(ending => jobType.endsWith(ending))
 | 
				
			||||||
                ) {
 | 
					                ) {
 | 
				
			||||||
                    const vault = syndicateEntry.Jobs.find(j => j.locationTag == rewardInfo.jobId!.split("_").at(-1));
 | 
					                    const vault = syndicateEntry.Jobs.find(j => j.locationTag == rewardInfo.jobId!.split("_").at(-1));
 | 
				
			||||||
                    if (vault) currentJob = vault;
 | 
					                    if (vault) {
 | 
				
			||||||
 | 
					                        currentJob = vault;
 | 
				
			||||||
                        if (jobType.endsWith("VaultBounty")) {
 | 
					                        if (jobType.endsWith("VaultBounty")) {
 | 
				
			||||||
                            currentJob.xpAmounts = [currentJob.xpAmounts.reduce((partialSum, a) => partialSum + a, 0)];
 | 
					                            currentJob.xpAmounts = [currentJob.xpAmounts.reduce((partialSum, a) => partialSum + a, 0)];
 | 
				
			||||||
                        }
 | 
					                        }
 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
                let medallionAmount = Math.floor(
 | 
					                let medallionAmount = Math.floor(
 | 
				
			||||||
                    Math.min(rewardInfo.JobStage, currentJob.xpAmounts.length - 1) / (rewardInfo.Q ? 0.8 : 1)
 | 
					                    Math.min(rewardInfo.JobStage, currentJob.xpAmounts.length - 1) / (rewardInfo.Q ? 0.8 : 1)
 | 
				
			||||||
                );
 | 
					                );
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user