fix: be less strict with required avatar type for personal synthesis
This commit is contained in:
parent
218df461e1
commit
ce91001ab4
@ -55,6 +55,7 @@ import { Loadout } from "../models/inventoryModels/loadoutModel";
|
||||
import { ILoadoutConfigDatabase } from "../types/saveLoadoutTypes";
|
||||
import { getLiteSortie, getWorldState, idToWeek } from "./worldStateService";
|
||||
import { config } from "./configService";
|
||||
import libraryDailyTasks from "@/static/fixed_responses/libraryDailyTasks.json";
|
||||
|
||||
const getRotations = (rewardInfo: IRewardInfo, tierOverride?: number): number[] => {
|
||||
// For Spy missions, e.g. 3 vaults cracked = A, B, C
|
||||
@ -331,10 +332,10 @@ export const addMissionInventoryUpdates = async (
|
||||
case "LibraryScans":
|
||||
value.forEach(scan => {
|
||||
let synthesisIgnored = true;
|
||||
if (
|
||||
inventory.LibraryPersonalTarget &&
|
||||
libraryPersonalTargetToAvatar[inventory.LibraryPersonalTarget] == scan.EnemyType
|
||||
) {
|
||||
if (inventory.LibraryPersonalTarget) {
|
||||
const taskAvatar = libraryPersonalTargetToAvatar[inventory.LibraryPersonalTarget];
|
||||
const taskAvatars = libraryDailyTasks.find(x => x.indexOf(taskAvatar) != -1)!;
|
||||
if (taskAvatars.indexOf(scan.EnemyType) != -1) {
|
||||
let progress = inventory.LibraryPersonalProgress.find(
|
||||
x => x.TargetType == inventory.LibraryPersonalTarget
|
||||
);
|
||||
@ -361,6 +362,7 @@ export const addMissionInventoryUpdates = async (
|
||||
logger.debug(`synthesis of ${scan.EnemyType} added to personal target progress`);
|
||||
synthesisIgnored = false;
|
||||
}
|
||||
}
|
||||
if (
|
||||
inventory.LibraryActiveDailyTaskInfo &&
|
||||
inventory.LibraryActiveDailyTaskInfo.EnemyTypes.find(x => x == scan.EnemyType)
|
||||
|
Loading…
x
Reference in New Issue
Block a user