fix dumb code
All checks were successful
Build / build (pull_request) Successful in 1m17s

This commit is contained in:
AMelonInsideLemon 2025-07-20 20:17:29 +02:00
parent 62314e89c7
commit 5682db24d9

View File

@ -1283,9 +1283,7 @@ export const addMissionRewards = async (
}
}
}
let medallionAmount = Math.floor(
Math.min(rewardInfo.JobStage, currentJob.xpAmounts.length - 1) / (rewardInfo.Q ? 0.8 : 1)
);
let medallionAmount = Math.floor(currentJob.xpAmounts[rewardInfo.JobStage] / (rewardInfo.Q ? 0.8 : 1));
if (
["DeimosEndlessAreaDefenseBounty", "DeimosEndlessExcavateBounty", "DeimosEndlessPurifyBounty"].some(
ending => jobType.endsWith(ending)