feat: bounty standing reward #1556

Merged
Sainan merged 12 commits from AMelonInsideLemon/SpaceNinjaServer:bounty-standing-rewards into main 2025-04-12 06:13:45 -07:00
Showing only changes of commit afa5057c97 - Show all commits

View File

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