feat: Arcana Isolation Vault rewards #2276

Merged
Sainan merged 2 commits from AMelonInsideLemon/SpaceNinjaServer:arcana-isolation-vault-rewards into main 2025-06-24 19:05:20 -07:00
Showing only changes of commit a48813ba77 - Show all commits

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)
);