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

This commit is contained in:
AMelonInsideLemon 2025-04-11 21:28:14 +02:00
parent 3b2fcaf632
commit afa5057c97

View File

@ -746,10 +746,9 @@ export const addMissionRewards = async (
) {
const endlessJob = syndicateEntry.Jobs.find(j => j.endless);
if (endlessJob) {
currentJob = endlessJob;
const index = rewardInfo.JobStage % currentJob.xpAmounts.length;
const excess = Math.floor(rewardInfo.JobStage / currentJob.xpAmounts.length);
medallionAmount = Math.floor(currentJob.xpAmounts[index] * (1 + 0.15000001 * excess));
const index = rewardInfo.JobStage % endlessJob.xpAmounts.length;
const excess = Math.floor(rewardInfo.JobStage / endlessJob.xpAmounts.length);
medallionAmount = Math.floor(endlessJob.xpAmounts[index] * (1 + 0.15000001 * excess));
}
}
await addItem(inventory, "/Lotus/Types/Items/Deimos/EntratiFragmentUncommonB", medallionAmount);