make rewardInfo an optional argument
This commit is contained in:
parent
76b6bc3b61
commit
c7034b5e6d
@ -844,7 +844,7 @@ export const addFixedLevelRewards = (
|
||||
rewards: IMissionRewardExternal,
|
||||
inventory: TInventoryDatabaseDocument,
|
||||
MissionRewards: IMissionReward[],
|
||||
rewardInfo: IRewardInfo
|
||||
rewardInfo?: IRewardInfo
|
||||
): number => {
|
||||
let missionBonusCredits = 0;
|
||||
if (rewards.credits) {
|
||||
@ -876,7 +876,7 @@ export const addFixedLevelRewards = (
|
||||
if (rewards.droptable in ExportRewards) {
|
||||
const rotations: number[] = [];
|
||||
// This makes it so that /Lotus/Types/Keys/ProteaQuest/ProteaQuestMissionFour gives all 3 Xoris parts
|
||||
if (rewardInfo.VaultsCracked) {
|
||||
if (rewardInfo?.VaultsCracked) {
|
||||
for (let i = 0; i != rewardInfo.VaultsCracked; ++i) {
|
||||
rotations.push(i);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user