返回提交历史
Modified
src/services/missionInventoryUpdateService.ts
+5
-0
XFEstudio/XFESpaceNinjaServer
fix: ignore rewardQualifications for non-endless mission types (#2590)
Closes #2586 Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/2590 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
a2d383ee
代码差异
1 个文件
+5
-0
@@ -100,6 +100,11 @@ const getRotations = (rewardInfo: IRewardInfo, tierOverride?: number): number[]
100
100
return [rewardInfo.rewardTier];
101
101
}
102
102
103
// 'rewardQualifications' is unreliable for mission types that only have rotation A (https://onlyg.it/OpenWF/SpaceNinjaServer/issues/2586)
104
if (missionIndex == 0 || missionIndex == 1 || missionIndex == 5) {
105
return [0];
106
}
107
103
108
const rotationCount = rewardInfo.rewardQualifications?.length || 0;
104
109
105
110
// Empty or absent rewardQualifications should not give rewards when: