Update missionInventoryUpdateService.ts
All checks were successful
Build / build (pull_request) Successful in 40s
All checks were successful
Build / build (pull_request) Successful in 40s
This commit is contained in:
parent
3b2fcaf632
commit
afa5057c97
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user