fix: give rewards for completing a capture mission #1872

Merged
Sainan merged 2 commits from capture-fix into main 2025-04-26 11:57:04 -07:00
Showing only changes of commit cbf6f3ece7 - Show all commits

View File

@ -69,8 +69,10 @@ const getRotations = (rewardInfo: IRewardInfo, tierOverride?: number): number[]
return rotations;
}
const missionIndex = ExportRegions[rewardInfo.node].missionIndex;
// 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];
}
@ -80,6 +82,11 @@ const getRotations = (rewardInfo: IRewardInfo, tierOverride?: number): number[]
// - 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)
// Successful completion of a capture mission should always give a rot A reward, although it has the same rewardInfo as completing only 1 zone of (E)SO
if (missionIndex == 5) {
return [0];
}
const rotationPattern =
tierOverride === undefined
? [0, 0, 1, 2] // A, A, B, C