feat: daily synthesis #1014
@ -180,6 +180,22 @@ export const addMissionInventoryUpdates = (
|
|||||||
inventory.LoreFragmentScans.push(x);
|
inventory.LoreFragmentScans.push(x);
|
||||||
});
|
});
|
||||||
break;
|
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": {
|
case "SyndicateId": {
|
||||||
inventory.CompletedSyndicates.push(value);
|
inventory.CompletedSyndicates.push(value);
|
||||||
break;
|
break;
|
||||||
|
@ -92,6 +92,12 @@ export type IMissionInventoryUpdateRequest = {
|
|||||||
IsFinalWave: boolean;
|
IsFinalWave: boolean;
|
||||||
Participants: IVoidTearParticipantInfo[];
|
Participants: IVoidTearParticipantInfo[];
|
||||||
};
|
};
|
||||||
|
LibraryScans?: {
|
||||||
|
EnemyType: string;
|
||||||
|
Count: number;
|
||||||
|
CodexScanCount: number;
|
||||||
|
Standing: number;
|
||||||
|
}[];
|
||||||
} & {
|
} & {
|
||||||
[K in TEquipmentKey]?: IEquipmentClient[];
|
[K in TEquipmentKey]?: IEquipmentClient[];
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user