feat: daily synthesis #1014

Merged
OrdisPrime merged 6 commits from library-daily-task into main 2025-02-25 17:31:52 -08:00
2 changed files with 22 additions and 0 deletions
Showing only changes of commit cd32f31878 - Show all commits

View File

@ -180,6 +180,22 @@ export const addMissionInventoryUpdates = (
inventory.LoreFragmentScans.push(x);
});
break;
case "LibraryScans":
value.forEach(scan => {
if (inventory.LibraryActiveDailyTaskInfo) {
if (inventory.LibraryActiveDailyTaskInfo.EnemyTypes.find(x => x == scan.EnemyType)) {
inventory.LibraryActiveDailyTaskInfo.Scans ??= 0;
inventory.LibraryActiveDailyTaskInfo.Scans += scan.Count;
} else {
logger.warn(
`ignoring synthesis of ${scan.EnemyType} as it's not part of the active daily task`
);
}
} else {
logger.warn(`no library daily task active, ignoring synthesis of ${scan.EnemyType}`);
}
});
break;
case "SyndicateId": {
inventory.CompletedSyndicates.push(value);
break;

View File

@ -92,6 +92,12 @@ export type IMissionInventoryUpdateRequest = {
IsFinalWave: boolean;
Participants: IVoidTearParticipantInfo[];
};
LibraryScans?: {
EnemyType: string;
Count: number;
CodexScanCount: number;
Standing: number;
}[];
} & {
[K in TEquipmentKey]?: IEquipmentClient[];
};