fix: give rewards for completing a capture mission #1872
@ -69,16 +69,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