XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

SpaceNinjaServer

A simple server for a small space ninja game

公开
关注 0 Fork 1 Star 0
返回提交历史

XFEstudio/SpaceNinjaServer

fix: give rewards for completing a capture mission (#1872)

Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/1872 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>

ca1b6c31
Sainan <63328889+Sainan@users.noreply.github.com>
提交于

代码差异

1 个文件 +8 -3
Modified src/services/missionInventoryUpdateService.ts +8 -3
@@ -70,16 +70,21 @@ const getRotations = (rewardInfo: IRewardInfo, tierOverride?: number): number[]
70 70 return rotations;
71 71 }
72 72
73 const missionIndex = ExportRegions[rewardInfo.node].missionIndex;
74
73 75 // For Rescue missions
74 if (rewardInfo.node in ExportRegions && ExportRegions[rewardInfo.node].missionIndex == 3 && rewardInfo.rewardTier) {
76 if (rewardInfo.node in ExportRegions && missionIndex == 3 && rewardInfo.rewardTier) {
75 77 return [rewardInfo.rewardTier];
76 78 }
77 79
78 80 const rotationCount = rewardInfo.rewardQualifications?.length || 0;
79 81
80 // Empty or absent rewardQualifications should not give rewards:
81 // - Aborting a railjack mission (https://onlyg.it/OpenWF/SpaceNinjaServer/issues/1741)
82 // Empty or absent rewardQualifications should not give rewards when:
82 83 // - Completing only 1 zone of (E)SO (https://onlyg.it/OpenWF/SpaceNinjaServer/issues/1823)
84 // - Aborting a railjack mission (https://onlyg.it/OpenWF/SpaceNinjaServer/issues/1741)
85 if (rotationCount == 0 && missionIndex != 30 && missionIndex != 32) {
86 return [0];
87 }
83 88
84 89 const rotationPattern =
85 90 tierOverride === undefined