返回提交历史
Modified
src/services/missionInventoryUpdateService.ts
+5
-1
XFEstudio/XFESpaceNinjaServer
fix: don't divide by 0 (#1966)
Closes #1964 Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/1966 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
83743831
代码差异
1 个文件
+5
-1
@@ -1449,7 +1449,11 @@ function getRandomMissionDrops(
1449
1449
}
1450
1450
}
1451
1451
rewardManifests = [job.rewards];
1452
rotations = [RewardInfo.JobStage! % (job.xpAmounts.length - 1)];
1452
if (job.xpAmounts.length > 1) {
1453
rotations = [RewardInfo.JobStage! % (job.xpAmounts.length - 1)];
1454
} else {
1455
rotations = [RewardInfo.JobStage!];
1456
}
1453
1457
if (
1454
1458
RewardInfo.Q &&
1455
1459
(RewardInfo.JobStage === job.xpAmounts.length - 1 || job.isVault) &&