feat: library daily task progress
All checks were successful
Build / build (20) (push) Successful in 37s
Build / build (22) (push) Successful in 1m4s
Build / build (20) (pull_request) Successful in 1m2s
Build / build (22) (pull_request) Successful in 1m3s
Build / build (18) (push) Successful in 1m6s
Build / build (18) (pull_request) Successful in 37s
All checks were successful
Build / build (20) (push) Successful in 37s
Build / build (22) (push) Successful in 1m4s
Build / build (20) (pull_request) Successful in 1m2s
Build / build (22) (pull_request) Successful in 1m3s
Build / build (18) (push) Successful in 1m6s
Build / build (18) (pull_request) Successful in 37s
This commit is contained in:
parent
c1266b0f04
commit
cd32f31878
@ -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;
|
||||
|
@ -92,6 +92,12 @@ export type IMissionInventoryUpdateRequest = {
|
||||
IsFinalWave: boolean;
|
||||
Participants: IVoidTearParticipantInfo[];
|
||||
};
|
||||
LibraryScans?: {
|
||||
EnemyType: string;
|
||||
Count: number;
|
||||
CodexScanCount: number;
|
||||
Standing: number;
|
||||
}[];
|
||||
} & {
|
||||
[K in TEquipmentKey]?: IEquipmentClient[];
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user