Compare commits

...

1 Commits

Author SHA1 Message Date
2489b85249 fix: don't divide by 0
All checks were successful
Build / build (push) Successful in 1m34s
Build / build (pull_request) Successful in 1m0s
2025-05-03 00:14:18 +02:00

View File

@ -1449,7 +1449,11 @@ function getRandomMissionDrops(
} }
} }
rewardManifests = [job.rewards]; rewardManifests = [job.rewards];
if (job.xpAmounts.length > 1) {
rotations = [RewardInfo.JobStage! % (job.xpAmounts.length - 1)]; rotations = [RewardInfo.JobStage! % (job.xpAmounts.length - 1)];
} else {
rotations = [RewardInfo.JobStage!];
}
if ( if (
RewardInfo.Q && RewardInfo.Q &&
(RewardInfo.JobStage === job.xpAmounts.length - 1 || job.isVault) && (RewardInfo.JobStage === job.xpAmounts.length - 1 || job.isVault) &&