fix: don't divide by 0 (#1966)
Closes #1964 Reviewed-on: #1966 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
This commit is contained in:
parent
8520650018
commit
83743831c9
@ -1449,7 +1449,11 @@ function getRandomMissionDrops(
|
||||
}
|
||||
}
|
||||
rewardManifests = [job.rewards];
|
||||
if (job.xpAmounts.length > 1) {
|
||||
rotations = [RewardInfo.JobStage! % (job.xpAmounts.length - 1)];
|
||||
} else {
|
||||
rotations = [RewardInfo.JobStage!];
|
||||
}
|
||||
if (
|
||||
RewardInfo.Q &&
|
||||
(RewardInfo.JobStage === job.xpAmounts.length - 1 || job.isVault) &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user