Update missionInventoryUpdateService.ts
All checks were successful
Build / build (pull_request) Successful in 54s

This commit is contained in:
AMelonInsideLemon 2025-06-24 21:19:45 +02:00
parent c5c1b55983
commit a48813ba77

View File

@ -1227,11 +1227,13 @@ export const addMissionRewards = async (
].some(ending => jobType.endsWith(ending))
) {
const vault = syndicateEntry.Jobs.find(j => j.locationTag == rewardInfo.jobId!.split("_").at(-1));
if (vault) currentJob = vault;
if (vault) {
currentJob = vault;
if (jobType.endsWith("VaultBounty")) {
currentJob.xpAmounts = [currentJob.xpAmounts.reduce((partialSum, a) => partialSum + a, 0)];
}
}
}
let medallionAmount = Math.floor(
Math.min(rewardInfo.JobStage, currentJob.xpAmounts.length - 1) / (rewardInfo.Q ? 0.8 : 1)
);