chore: set HasOwnedVoidProjectionsPreviously when acquiring a relic (#1198)
All checks were successful
Build / build (20) (push) Successful in 37s
Build / build (18) (push) Successful in 1m8s
Build Docker image / docker (push) Successful in 31s
Build / build (22) (push) Successful in 1m10s

Reviewed-on: #1198
This commit is contained in:
Sainan 2025-03-15 10:25:32 -07:00
parent adddc11b6f
commit 56fecef1bf
4 changed files with 3 additions and 4 deletions

View File

@ -255,9 +255,6 @@ export const getInventoryResponse = async (
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.
//inventoryResponse.LastInventorySync = toOid(new Types.ObjectId());

View File

@ -1186,6 +1186,7 @@ const inventorySchema = new Schema<IInventoryDatabase, InventoryDocumentProps>(
ReceivedStartingGear: Boolean,
ArchwingEnabled: Boolean,
HasOwnedVoidProjectionsPreviously: Boolean,
//Use Operator\Drifter
UseAdultOperatorLoadout: Boolean,

View File

@ -536,6 +536,7 @@ export const addItem = async (
} satisfies IMiscItem
];
addMiscItems(inventory, miscItemChanges);
inventory.HasOwnedVoidProjectionsPreviously = true;
return {
InventoryChanges: {
MiscItems: miscItemChanges

View File

@ -252,7 +252,7 @@ export interface IInventoryClient extends IDailyAffiliations, InventoryClientEqu
Affiliations: IAffiliation[];
QualifyingInvasions: any[];
FactionScores: number[];
ArchwingEnabled: boolean;
ArchwingEnabled?: boolean;
PendingSpectreLoadouts?: ISpectreLoadout[];
SpectreLoadouts?: ISpectreLoadout[];
EmailItems: ITypeCount[];