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