forked from OpenWF/SpaceNinjaServer
		
	fix: ignore rewardQualifications for non-endless mission types (#2590)
Closes #2586 Reviewed-on: OpenWF/SpaceNinjaServer#2590 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
							
								
									834b7a8196
								
							
						
					
					
						commit
						a2d383ee3c
					
				@ -100,6 +100,11 @@ const getRotations = (rewardInfo: IRewardInfo, tierOverride?: number): number[]
 | 
			
		||||
        return [rewardInfo.rewardTier];
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    // 'rewardQualifications' is unreliable for mission types that only have rotation A (https://onlyg.it/OpenWF/SpaceNinjaServer/issues/2586)
 | 
			
		||||
    if (missionIndex == 0 || missionIndex == 1 || missionIndex == 5) {
 | 
			
		||||
        return [0];
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    const rotationCount = rewardInfo.rewardQualifications?.length || 0;
 | 
			
		||||
 | 
			
		||||
    // Empty or absent rewardQualifications should not give rewards when:
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user