forked from OpenWF/SpaceNinjaServer
		
	fix: give rewards for completing a capture mission (#1872)
Reviewed-on: OpenWF/SpaceNinjaServer#1872 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
							
								
									d66c474bfc
								
							
						
					
					
						commit
						ca1b6c31b6
					
				@ -70,16 +70,21 @@ const getRotations = (rewardInfo: IRewardInfo, tierOverride?: number): number[]
 | 
				
			|||||||
        return rotations;
 | 
					        return rotations;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    const missionIndex = ExportRegions[rewardInfo.node].missionIndex;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // For Rescue missions
 | 
					    // For Rescue missions
 | 
				
			||||||
    if (rewardInfo.node in ExportRegions && ExportRegions[rewardInfo.node].missionIndex == 3 && rewardInfo.rewardTier) {
 | 
					    if (rewardInfo.node in ExportRegions && missionIndex == 3 && rewardInfo.rewardTier) {
 | 
				
			||||||
        return [rewardInfo.rewardTier];
 | 
					        return [rewardInfo.rewardTier];
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    const rotationCount = rewardInfo.rewardQualifications?.length || 0;
 | 
					    const rotationCount = rewardInfo.rewardQualifications?.length || 0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // Empty or absent rewardQualifications should not give rewards:
 | 
					    // Empty or absent rewardQualifications should not give rewards when:
 | 
				
			||||||
    // - Aborting a railjack mission (https://onlyg.it/OpenWF/SpaceNinjaServer/issues/1741)
 | 
					 | 
				
			||||||
    // - Completing only 1 zone of (E)SO (https://onlyg.it/OpenWF/SpaceNinjaServer/issues/1823)
 | 
					    // - Completing only 1 zone of (E)SO (https://onlyg.it/OpenWF/SpaceNinjaServer/issues/1823)
 | 
				
			||||||
 | 
					    // - Aborting a railjack mission (https://onlyg.it/OpenWF/SpaceNinjaServer/issues/1741)
 | 
				
			||||||
 | 
					    if (rotationCount == 0 && missionIndex != 30 && missionIndex != 32) {
 | 
				
			||||||
 | 
					        return [0];
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    const rotationPattern =
 | 
					    const rotationPattern =
 | 
				
			||||||
        tierOverride === undefined
 | 
					        tierOverride === undefined
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user