fix: put vault medallion into correct place #2723
@ -1476,7 +1476,7 @@ export const addMissionRewards = async (
|
|||||||
if (vault) {
|
if (vault) {
|
||||||
currentJob = vault;
|
currentJob = vault;
|
||||||
if (jobType.endsWith("VaultBounty")) {
|
if (jobType.endsWith("VaultBounty")) {
|
||||||
currentJob.xpAmounts = [currentJob.xpAmounts.reduce((partialSum, a) => partialSum + a, 0)];
|
currentJob.xpAmounts[rewardInfo.JobTier!] = currentJob.xpAmounts.reduce((s, a) => s + a, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1493,15 +1493,22 @@ export const addMissionRewards = async (
|
|||||||
medallionAmount = Math.floor(endlessJob.xpAmounts[index] * (1 + 0.15000001 * excess));
|
medallionAmount = Math.floor(endlessJob.xpAmounts[index] * (1 + 0.15000001 * excess));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
await addItem(inventory, "/Lotus/Types/Items/Deimos/EntratiFragmentUncommonB", medallionAmount);
|
if (typeof medallionAmount === "number" && !isNaN(medallionAmount)) {
|
||||||
MissionRewards.push({
|
await addItem(inventory, "/Lotus/Types/Items/Deimos/EntratiFragmentUncommonB", medallionAmount);
|
||||||
StoreItem: "/Lotus/StoreItems/Types/Items/Deimos/EntratiFragmentUncommonB",
|
MissionRewards.push({
|
||||||
ItemCount: medallionAmount
|
StoreItem: "/Lotus/StoreItems/Types/Items/Deimos/EntratiFragmentUncommonB",
|
||||||
});
|
ItemCount: medallionAmount
|
||||||
SyndicateXPItemReward = medallionAmount;
|
});
|
||||||
logger.debug(
|
SyndicateXPItemReward = medallionAmount;
|
||||||
`Giving ${medallionAmount} medallions for the ${rewardInfo.JobStage} stage of the ${rewardInfo.JobTier} tier bounty`
|
logger.debug(
|
||||||
);
|
`Giving ${medallionAmount} medallions for the ${rewardInfo.JobStage} stage of the ${rewardInfo.JobTier} tier bounty`
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
logger.warning(
|
||||||
|
`${jobType} tried to give ${medallionAmount} medallions for the ${rewardInfo.JobStage} stage of the ${rewardInfo.JobTier} tier bounty`
|
||||||
|
);
|
||||||
|
logger.warning(`currentJob`, { currentJob: currentJob });
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
const specialCase = [
|
const specialCase = [
|
||||||
{ endings: ["Heists/HeistProfitTakerBountyOne"], stage: 2, amount: 1000 },
|
{ endings: ["Heists/HeistProfitTakerBountyOne"], stage: 2, amount: 1000 },
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user