fix: deimos vault bounty detection
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				Build / build (pull_request) Successful in 1m46s
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	Build / build (pull_request) Successful in 1m46s
				
			Related to #388 this should fix incorect rewards for deimos filed bounties
This commit is contained in:
		
							parent
							
								
									61a8d01f64
								
							
						
					
					
						commit
						3050e42d0b
					
				@ -1204,8 +1204,10 @@ export const addMissionRewards = async (
 | 
				
			|||||||
        if (syndicateEntry && syndicateEntry.Jobs) {
 | 
					        if (syndicateEntry && syndicateEntry.Jobs) {
 | 
				
			||||||
            let currentJob = syndicateEntry.Jobs[rewardInfo.JobTier!];
 | 
					            let currentJob = syndicateEntry.Jobs[rewardInfo.JobTier!];
 | 
				
			||||||
            if (syndicateEntry.Tag === "EntratiSyndicate") {
 | 
					            if (syndicateEntry.Tag === "EntratiSyndicate") {
 | 
				
			||||||
                const vault = syndicateEntry.Jobs.find(j => j.locationTag === locationTag);
 | 
					                if (jobType.endsWith("VaultBounty")) {
 | 
				
			||||||
                if (vault) currentJob = vault;
 | 
					                    const vault = syndicateEntry.Jobs.find(j => j.locationTag === locationTag);
 | 
				
			||||||
 | 
					                    if (vault) currentJob = vault;
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
                let medallionAmount = Math.floor(currentJob.xpAmounts[rewardInfo.JobStage] / (rewardInfo.Q ? 0.8 : 1));
 | 
					                let medallionAmount = Math.floor(currentJob.xpAmounts[rewardInfo.JobStage] / (rewardInfo.Q ? 0.8 : 1));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                if (
 | 
					                if (
 | 
				
			||||||
@ -1552,8 +1554,10 @@ function getRandomMissionDrops(
 | 
				
			|||||||
                        let job = syndicateEntry.Jobs[RewardInfo.JobTier!];
 | 
					                        let job = syndicateEntry.Jobs[RewardInfo.JobTier!];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                        if (syndicateEntry.Tag === "EntratiSyndicate") {
 | 
					                        if (syndicateEntry.Tag === "EntratiSyndicate") {
 | 
				
			||||||
                            const vault = syndicateEntry.Jobs.find(j => j.locationTag === locationTag);
 | 
					                            if (jobType.endsWith("VaultBounty")) {
 | 
				
			||||||
                            if (vault && locationTag) job = vault;
 | 
					                                const vault = syndicateEntry.Jobs.find(j => j.locationTag === locationTag);
 | 
				
			||||||
 | 
					                                if (vault) job = vault;
 | 
				
			||||||
 | 
					                            }
 | 
				
			||||||
                            // if (
 | 
					                            // if (
 | 
				
			||||||
                            //     [
 | 
					                            //     [
 | 
				
			||||||
                            //         "DeimosRuinsExterminateBounty",
 | 
					                            //         "DeimosRuinsExterminateBounty",
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user