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

XFESpaceNinjaServer

A simple server for a small space ninja game

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

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
Sainan <63328889+Sainan@users.noreply.github.com>
提交于

代码差异

1 个文件 +5 -1
Modified src/services/missionInventoryUpdateService.ts +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) &&