Update missionInventoryUpdateService.ts
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				Build / build (pull_request) Successful in 1m24s
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	Build / build (pull_request) Successful in 1m24s
				
			This commit is contained in:
		
							parent
							
								
									c13be616b1
								
							
						
					
					
						commit
						4d337074cb
					
				@ -923,6 +923,7 @@ function getRandomMissionDrops(RewardInfo: IRewardInfo, tierOverride: number | u
 | 
				
			|||||||
        let rotations: number[] = [];
 | 
					        let rotations: number[] = [];
 | 
				
			||||||
        if (RewardInfo.jobId) {
 | 
					        if (RewardInfo.jobId) {
 | 
				
			||||||
            if (RewardInfo.JobStage! >= 0) {
 | 
					            if (RewardInfo.JobStage! >= 0) {
 | 
				
			||||||
 | 
					                // eslint-disable-next-line @typescript-eslint/no-unused-vars
 | 
				
			||||||
                const [jobType, tierStr, hubNode, syndicateId, locationTag] = RewardInfo.jobId.split("_");
 | 
					                const [jobType, tierStr, hubNode, syndicateId, locationTag] = RewardInfo.jobId.split("_");
 | 
				
			||||||
                const tier = Number(tierStr);
 | 
					                const tier = Number(tierStr);
 | 
				
			||||||
                let isEndlessJob = false;
 | 
					                let isEndlessJob = false;
 | 
				
			||||||
@ -1004,8 +1005,8 @@ function getRandomMissionDrops(RewardInfo: IRewardInfo, tierOverride: number | u
 | 
				
			|||||||
                                }
 | 
					                                }
 | 
				
			||||||
                            }
 | 
					                            }
 | 
				
			||||||
                        }
 | 
					                        }
 | 
				
			||||||
                        rewardManifests.push(job.rewards);
 | 
					                        rewardManifests = [job.rewards];
 | 
				
			||||||
                        rotations.push(RewardInfo.JobStage! % (job.xpAmounts.length - 1));
 | 
					                        rotations = [RewardInfo.JobStage! % (job.xpAmounts.length - 1)];
 | 
				
			||||||
                        if (
 | 
					                        if (
 | 
				
			||||||
                            RewardInfo.Q &&
 | 
					                            RewardInfo.Q &&
 | 
				
			||||||
                            (RewardInfo.JobStage === job.xpAmounts.length - 1 || job.isVault) &&
 | 
					                            (RewardInfo.JobStage === job.xpAmounts.length - 1 || job.isVault) &&
 | 
				
			||||||
@ -1057,8 +1058,8 @@ function getRandomMissionDrops(RewardInfo: IRewardInfo, tierOverride: number | u
 | 
				
			|||||||
            const tierSuffix = tierSuffixes[syndicateTag][tier];
 | 
					            const tierSuffix = tierSuffixes[syndicateTag][tier];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            if (rewardTable && tierSuffix) {
 | 
					            if (rewardTable && tierSuffix) {
 | 
				
			||||||
                rewardManifests.push(rewardTable + tierSuffix);
 | 
					                rewardManifests = [rewardTable + tierSuffix];
 | 
				
			||||||
                rotations.push(0);
 | 
					                rotations = [0];
 | 
				
			||||||
            } else {
 | 
					            } else {
 | 
				
			||||||
                logger.error(`Unknown syndicate or tier: ${syndicateTag} , ${tier}`);
 | 
					                logger.error(`Unknown syndicate or tier: ${syndicateTag} , ${tier}`);
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user