chore: set HasOwnedVoidProjectionsPreviously when acquiring a relic (#1198)
Reviewed-on: #1198
This commit is contained in:
		
							parent
							
								
									adddc11b6f
								
							
						
					
					
						commit
						56fecef1bf
					
				@ -255,9 +255,6 @@ export const getInventoryResponse = async (
 | 
				
			|||||||
        applyCheatsToInfestedFoundry(inventoryResponse.InfestedFoundry);
 | 
					        applyCheatsToInfestedFoundry(inventoryResponse.InfestedFoundry);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // This determines if the "void fissures" tab is shown in navigation.
 | 
					 | 
				
			||||||
    inventoryResponse.HasOwnedVoidProjectionsPreviously = true;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    // Omitting this field so opening the navigation resyncs the inventory which is more desirable for typical usage.
 | 
					    // Omitting this field so opening the navigation resyncs the inventory which is more desirable for typical usage.
 | 
				
			||||||
    //inventoryResponse.LastInventorySync = toOid(new Types.ObjectId());
 | 
					    //inventoryResponse.LastInventorySync = toOid(new Types.ObjectId());
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -1186,6 +1186,7 @@ const inventorySchema = new Schema<IInventoryDatabase, InventoryDocumentProps>(
 | 
				
			|||||||
        ReceivedStartingGear: Boolean,
 | 
					        ReceivedStartingGear: Boolean,
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        ArchwingEnabled: Boolean,
 | 
					        ArchwingEnabled: Boolean,
 | 
				
			||||||
 | 
					        HasOwnedVoidProjectionsPreviously: Boolean,
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        //Use Operator\Drifter
 | 
					        //Use Operator\Drifter
 | 
				
			||||||
        UseAdultOperatorLoadout: Boolean,
 | 
					        UseAdultOperatorLoadout: Boolean,
 | 
				
			||||||
 | 
				
			|||||||
@ -536,6 +536,7 @@ export const addItem = async (
 | 
				
			|||||||
                            } satisfies IMiscItem
 | 
					                            } satisfies IMiscItem
 | 
				
			||||||
                        ];
 | 
					                        ];
 | 
				
			||||||
                        addMiscItems(inventory, miscItemChanges);
 | 
					                        addMiscItems(inventory, miscItemChanges);
 | 
				
			||||||
 | 
					                        inventory.HasOwnedVoidProjectionsPreviously = true;
 | 
				
			||||||
                        return {
 | 
					                        return {
 | 
				
			||||||
                            InventoryChanges: {
 | 
					                            InventoryChanges: {
 | 
				
			||||||
                                MiscItems: miscItemChanges
 | 
					                                MiscItems: miscItemChanges
 | 
				
			||||||
 | 
				
			|||||||
@ -252,7 +252,7 @@ export interface IInventoryClient extends IDailyAffiliations, InventoryClientEqu
 | 
				
			|||||||
    Affiliations: IAffiliation[];
 | 
					    Affiliations: IAffiliation[];
 | 
				
			||||||
    QualifyingInvasions: any[];
 | 
					    QualifyingInvasions: any[];
 | 
				
			||||||
    FactionScores: number[];
 | 
					    FactionScores: number[];
 | 
				
			||||||
    ArchwingEnabled: boolean;
 | 
					    ArchwingEnabled?: boolean;
 | 
				
			||||||
    PendingSpectreLoadouts?: ISpectreLoadout[];
 | 
					    PendingSpectreLoadouts?: ISpectreLoadout[];
 | 
				
			||||||
    SpectreLoadouts?: ISpectreLoadout[];
 | 
					    SpectreLoadouts?: ISpectreLoadout[];
 | 
				
			||||||
    EmailItems: ITypeCount[];
 | 
					    EmailItems: ITypeCount[];
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user