fix: show conservation standing in progress screen, missing reward multiplications #2776

Merged
Sainan merged 6 commits from conservation-fixes into main 2025-09-13 23:50:09 -07:00
Showing only changes of commit 294781ffc3 - Show all commits

View File

@ -1097,10 +1097,12 @@ export const addMissionRewards = async (
}: IMissionInventoryUpdateRequest,
firstCompletion: boolean
): Promise<AddMissionRewardsReturnType> => {
AffiliationMods ??= [];
if (!rewardInfo) {
//TODO: if there is a case where you can have credits collected during a mission but no rewardInfo, add credits needs to be handled earlier
logger.debug(`Mission ${missions!.Tag} did not have Reward Info `);
return { MissionRewards: [], AffiliationMods: [] };
return { MissionRewards: [], AffiliationMods };
}
//TODO: check double reward merging
@ -1410,8 +1412,6 @@ export const addMissionRewards = async (
}
}
AffiliationMods ??= [];
if (rewardInfo.JobStage != undefined && rewardInfo.jobId) {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const [jobType, unkIndex, hubNode, syndicateMissionId] = rewardInfo.jobId.split("_");