feat: track EudicoHeists in CompletedJobChains #1531
@ -1414,7 +1414,7 @@ const inventorySchema = new Schema<IInventoryDatabase, InventoryDocumentProps>(
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        //https://warframe.fandom.com/wiki/Heist
 | 
					        //https://warframe.fandom.com/wiki/Heist
 | 
				
			||||||
        //ProfitTaker(1-4) Example:"LocationTag": "EudicoHeists", "Jobs":Mission name
 | 
					        //ProfitTaker(1-4) Example:"LocationTag": "EudicoHeists", "Jobs":Mission name
 | 
				
			||||||
        CompletedJobChains: [completedJobChainsSchema],
 | 
					        CompletedJobChains: { type: [completedJobChainsSchema], default: undefined },
 | 
				
			||||||
        //Night Wave Challenge
 | 
					        //Night Wave Challenge
 | 
				
			||||||
        SeasonChallengeHistory: [seasonChallengeHistorySchema],
 | 
					        SeasonChallengeHistory: [seasonChallengeHistorySchema],
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -152,6 +152,7 @@ export const addMissionInventoryUpdates = async (
 | 
				
			|||||||
            // eslint-disable-next-line @typescript-eslint/no-unused-vars
 | 
					            // eslint-disable-next-line @typescript-eslint/no-unused-vars
 | 
				
			||||||
            const [bounty, tier, hub, id, tag] = inventoryUpdates.RewardInfo.jobId.split("_");
 | 
					            const [bounty, tier, hub, id, tag] = inventoryUpdates.RewardInfo.jobId.split("_");
 | 
				
			||||||
            if (tag == "EudicoHeists") {
 | 
					            if (tag == "EudicoHeists") {
 | 
				
			||||||
 | 
					                inventory.CompletedJobChains ??= [];
 | 
				
			||||||
                let chain = inventory.CompletedJobChains.find(x => x.LocationTag == tag);
 | 
					                let chain = inventory.CompletedJobChains.find(x => x.LocationTag == tag);
 | 
				
			||||||
                if (!chain) {
 | 
					                if (!chain) {
 | 
				
			||||||
                    chain =
 | 
					                    chain =
 | 
				
			||||||
 | 
				
			|||||||
@ -292,7 +292,7 @@ export interface IInventoryClient extends IDailyAffiliations, InventoryClientEqu
 | 
				
			|||||||
    RecentVendorPurchases?: IRecentVendorPurchaseClient[];
 | 
					    RecentVendorPurchases?: IRecentVendorPurchaseClient[];
 | 
				
			||||||
    NodeIntrosCompleted: string[];
 | 
					    NodeIntrosCompleted: string[];
 | 
				
			||||||
    GuildId?: IOid;
 | 
					    GuildId?: IOid;
 | 
				
			||||||
    CompletedJobChains: ICompletedJobChain[];
 | 
					    CompletedJobChains?: ICompletedJobChain[];
 | 
				
			||||||
    SeasonChallengeHistory: ISeasonChallenge[];
 | 
					    SeasonChallengeHistory: ISeasonChallenge[];
 | 
				
			||||||
    EquippedInstrument?: string;
 | 
					    EquippedInstrument?: string;
 | 
				
			||||||
    InvasionChainProgress: IInvasionChainProgress[];
 | 
					    InvasionChainProgress: IInvasionChainProgress[];
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user