返回提交历史
Modified
src/controllers/api/inventoryController.ts
+0
-3
Modified
src/models/inventoryModels/inventoryModel.ts
+1
-0
Modified
src/services/inventoryService.ts
+1
-0
Modified
src/types/inventoryTypes/inventoryTypes.ts
+1
-1
XFEstudio/SpaceNinjaServer
chore: set HasOwnedVoidProjectionsPreviously when acquiring a relic (#1198)
Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/1198
56fecef1
代码差异
4 个文件
+3
-4
@@ -255,9 +255,6 @@ export const getInventoryResponse = async (
255
255
applyCheatsToInfestedFoundry(inventoryResponse.InfestedFoundry);
256
256
}
257
257
258
// This determines if the "void fissures" tab is shown in navigation.
259
inventoryResponse.HasOwnedVoidProjectionsPreviously = true;
260
261
258
// Omitting this field so opening the navigation resyncs the inventory which is more desirable for typical usage.
262
259
//inventoryResponse.LastInventorySync = toOid(new Types.ObjectId());
263
260
@@ -1186,6 +1186,7 @@ const inventorySchema = new Schema<IInventoryDatabase, InventoryDocumentProps>(
1186
1186
ReceivedStartingGear: Boolean,
1187
1187
1188
1188
ArchwingEnabled: Boolean,
1189
HasOwnedVoidProjectionsPreviously: Boolean,
1189
1190
1190
1191
//Use Operator\Drifter
1191
1192
UseAdultOperatorLoadout: Boolean,
@@ -536,6 +536,7 @@ export const addItem = async (
536
536
} satisfies IMiscItem
537
537
];
538
538
addMiscItems(inventory, miscItemChanges);
539
inventory.HasOwnedVoidProjectionsPreviously = true;
539
540
return {
540
541
InventoryChanges: {
541
542
MiscItems: miscItemChanges
@@ -252,7 +252,7 @@ export interface IInventoryClient extends IDailyAffiliations, InventoryClientEqu
252
252
Affiliations: IAffiliation[];
253
253
QualifyingInvasions: any[];
254
254
FactionScores: number[];
255
ArchwingEnabled: boolean;
255
ArchwingEnabled?: boolean;
256
256
PendingSpectreLoadouts?: ISpectreLoadout[];
257
257
SpectreLoadouts?: ISpectreLoadout[];
258
258
EmailItems: ITypeCount[];