Update missionInventoryUpdateService.ts
All checks were successful
Build / build (pull_request) Successful in 1m24s
All checks were successful
Build / build (pull_request) Successful in 1m24s
This commit is contained in:
parent
c13be616b1
commit
4d337074cb
@ -923,6 +923,7 @@ function getRandomMissionDrops(RewardInfo: IRewardInfo, tierOverride: number | u
|
||||
let rotations: number[] = [];
|
||||
if (RewardInfo.jobId) {
|
||||
if (RewardInfo.JobStage! >= 0) {
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
const [jobType, tierStr, hubNode, syndicateId, locationTag] = RewardInfo.jobId.split("_");
|
||||
const tier = Number(tierStr);
|
||||
let isEndlessJob = false;
|
||||
@ -1004,8 +1005,8 @@ function getRandomMissionDrops(RewardInfo: IRewardInfo, tierOverride: number | u
|
||||
}
|
||||
}
|
||||
}
|
||||
rewardManifests.push(job.rewards);
|
||||
rotations.push(RewardInfo.JobStage! % (job.xpAmounts.length - 1));
|
||||
rewardManifests = [job.rewards];
|
||||
rotations = [RewardInfo.JobStage! % (job.xpAmounts.length - 1)];
|
||||
if (
|
||||
RewardInfo.Q &&
|
||||
(RewardInfo.JobStage === job.xpAmounts.length - 1 || job.isVault) &&
|
||||
@ -1057,8 +1058,8 @@ function getRandomMissionDrops(RewardInfo: IRewardInfo, tierOverride: number | u
|
||||
const tierSuffix = tierSuffixes[syndicateTag][tier];
|
||||
|
||||
if (rewardTable && tierSuffix) {
|
||||
rewardManifests.push(rewardTable + tierSuffix);
|
||||
rotations.push(0);
|
||||
rewardManifests = [rewardTable + tierSuffix];
|
||||
rotations = [0];
|
||||
} else {
|
||||
logger.error(`Unknown syndicate or tier: ${syndicateTag} , ${tier}`);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user