forked from OpenWF/SpaceNinjaServer
		
	fix: deimos vault bounty detection (#2207)
Related to #388 this should fix incorect rewards for deimos filed bounties Reviewed-on: OpenWF/SpaceNinjaServer#2207 Reviewed-by: Sainan <sainan@calamity.inc> Co-authored-by: AMelonInsideLemon <166175391+AMelonInsideLemon@users.noreply.github.com> Co-committed-by: AMelonInsideLemon <166175391+AMelonInsideLemon@users.noreply.github.com>
This commit is contained in:
		
							parent
							
								
									ce46fa14ac
								
							
						
					
					
						commit
						c6c7a2966b
					
				@ -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") {
 | 
				
			||||||
 | 
					                if (jobType.endsWith("VaultBounty")) {
 | 
				
			||||||
                    const vault = syndicateEntry.Jobs.find(j => j.locationTag === locationTag);
 | 
					                    const vault = syndicateEntry.Jobs.find(j => j.locationTag === locationTag);
 | 
				
			||||||
                    if (vault) currentJob = vault;
 | 
					                    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") {
 | 
				
			||||||
 | 
					                            if (jobType.endsWith("VaultBounty")) {
 | 
				
			||||||
                                const vault = syndicateEntry.Jobs.find(j => j.locationTag === locationTag);
 | 
					                                const vault = syndicateEntry.Jobs.find(j => j.locationTag === locationTag);
 | 
				
			||||||
                            if (vault && locationTag) job = vault;
 | 
					                                if (vault) job = vault;
 | 
				
			||||||
 | 
					                            }
 | 
				
			||||||
                            // if (
 | 
					                            // if (
 | 
				
			||||||
                            //     [
 | 
					                            //     [
 | 
				
			||||||
                            //         "DeimosRuinsExterminateBounty",
 | 
					                            //         "DeimosRuinsExterminateBounty",
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user