feat: Arcana Isolation Vault rewards #2276
@ -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)
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user