make rewardInfo an optional argument
All checks were successful
Build / build (push) Successful in 1m24s
Build / build (pull_request) Successful in 42s

This commit is contained in:
Sainan 2025-04-15 00:15:37 +02:00
parent 76b6bc3b61
commit c7034b5e6d

View File

@ -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);
} }