From afa5057c97413b7563a0b77e3c968fd50ec172f5 Mon Sep 17 00:00:00 2001 From: AMelonInsideLemon <166175391+AMelonInsideLemon@users.noreply.github.com> Date: Fri, 11 Apr 2025 21:28:14 +0200 Subject: [PATCH] Update missionInventoryUpdateService.ts --- src/services/missionInventoryUpdateService.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/services/missionInventoryUpdateService.ts b/src/services/missionInventoryUpdateService.ts index 92c1bc03..36cc50c0 100644 --- a/src/services/missionInventoryUpdateService.ts +++ b/src/services/missionInventoryUpdateService.ts @@ -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);