Compare commits
No commits in common. "d0df003eeeeacd8149ec96e5fcaa1a37595f844f" and "7d5ea680e4bc82698803637d35266c94dee28caa" have entirely different histories.
d0df003eee
...
7d5ea680e4
@ -83,8 +83,7 @@ import {
|
|||||||
INemesisClient,
|
INemesisClient,
|
||||||
IInfNode,
|
IInfNode,
|
||||||
IDiscoveredMarker,
|
IDiscoveredMarker,
|
||||||
IWeeklyMission,
|
IWeeklyMission
|
||||||
ILockedWeaponGroupDatabase
|
|
||||||
} from "../../types/inventoryTypes/inventoryTypes";
|
} from "../../types/inventoryTypes/inventoryTypes";
|
||||||
import { IOid } from "../../types/commonTypes";
|
import { IOid } from "../../types/commonTypes";
|
||||||
import {
|
import {
|
||||||
@ -1148,17 +1147,6 @@ const alignmentSchema = new Schema<IAlignment>(
|
|||||||
{ _id: false }
|
{ _id: false }
|
||||||
);
|
);
|
||||||
|
|
||||||
const lockedWeaponGroupSchema = new Schema<ILockedWeaponGroupDatabase>(
|
|
||||||
{
|
|
||||||
s: Schema.Types.ObjectId,
|
|
||||||
p: Schema.Types.ObjectId,
|
|
||||||
l: Schema.Types.ObjectId,
|
|
||||||
m: Schema.Types.ObjectId,
|
|
||||||
sn: Schema.Types.ObjectId
|
|
||||||
},
|
|
||||||
{ _id: false }
|
|
||||||
);
|
|
||||||
|
|
||||||
const inventorySchema = new Schema<IInventoryDatabase, InventoryDocumentProps>(
|
const inventorySchema = new Schema<IInventoryDatabase, InventoryDocumentProps>(
|
||||||
{
|
{
|
||||||
accountOwnerId: Schema.Types.ObjectId,
|
accountOwnerId: Schema.Types.ObjectId,
|
||||||
@ -1500,9 +1488,7 @@ const inventorySchema = new Schema<IInventoryDatabase, InventoryDocumentProps>(
|
|||||||
EchoesHexConquestActiveFrameVariants: { type: [String], default: undefined },
|
EchoesHexConquestActiveFrameVariants: { type: [String], default: undefined },
|
||||||
EchoesHexConquestActiveStickers: { type: [String], default: undefined },
|
EchoesHexConquestActiveStickers: { type: [String], default: undefined },
|
||||||
|
|
||||||
// G3 + Zanuka
|
BrandedSuits: { type: [Schema.Types.ObjectId], default: undefined }
|
||||||
BrandedSuits: { type: [Schema.Types.ObjectId], default: undefined },
|
|
||||||
LockedWeaponGroup: { type: lockedWeaponGroupSchema, default: undefined }
|
|
||||||
},
|
},
|
||||||
{ timestamps: { createdAt: "Created", updatedAt: false } }
|
{ timestamps: { createdAt: "Created", updatedAt: false } }
|
||||||
);
|
);
|
||||||
@ -1537,15 +1523,6 @@ inventorySchema.set("toJSON", {
|
|||||||
if (inventoryDatabase.BrandedSuits) {
|
if (inventoryDatabase.BrandedSuits) {
|
||||||
inventoryResponse.BrandedSuits = inventoryDatabase.BrandedSuits.map(toOid);
|
inventoryResponse.BrandedSuits = inventoryDatabase.BrandedSuits.map(toOid);
|
||||||
}
|
}
|
||||||
if (inventoryDatabase.LockedWeaponGroup) {
|
|
||||||
inventoryResponse.LockedWeaponGroup = {
|
|
||||||
s: toOid(inventoryDatabase.LockedWeaponGroup.s),
|
|
||||||
l: inventoryDatabase.LockedWeaponGroup.l ? toOid(inventoryDatabase.LockedWeaponGroup.l) : undefined,
|
|
||||||
p: inventoryDatabase.LockedWeaponGroup.p ? toOid(inventoryDatabase.LockedWeaponGroup.p) : undefined,
|
|
||||||
m: inventoryDatabase.LockedWeaponGroup.m ? toOid(inventoryDatabase.LockedWeaponGroup.m) : undefined,
|
|
||||||
sn: inventoryDatabase.LockedWeaponGroup.sn ? toOid(inventoryDatabase.LockedWeaponGroup.sn) : undefined
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -95,8 +95,7 @@ export const addMissionInventoryUpdates = async (
|
|||||||
inventoryUpdates.MissionFailed &&
|
inventoryUpdates.MissionFailed &&
|
||||||
inventoryUpdates.MissionStatus == "GS_FAILURE" &&
|
inventoryUpdates.MissionStatus == "GS_FAILURE" &&
|
||||||
inventoryUpdates.EndOfMatchUpload &&
|
inventoryUpdates.EndOfMatchUpload &&
|
||||||
inventoryUpdates.ObjectiveReached &&
|
inventoryUpdates.ObjectiveReached
|
||||||
!inventoryUpdates.LockedWeaponGroup
|
|
||||||
) {
|
) {
|
||||||
const loadout = (await Loadout.findById(inventory.LoadOutPresets, "NORMAL"))!;
|
const loadout = (await Loadout.findById(inventory.LoadOutPresets, "NORMAL"))!;
|
||||||
const config = loadout.NORMAL.id(inventory.CurrentLoadOutIds[0].$oid)!;
|
const config = loadout.NORMAL.id(inventory.CurrentLoadOutIds[0].$oid)!;
|
||||||
@ -398,20 +397,6 @@ export const addMissionInventoryUpdates = async (
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case "LockedWeaponGroup": {
|
|
||||||
inventory.LockedWeaponGroup = {
|
|
||||||
s: new Types.ObjectId(value.s.$oid),
|
|
||||||
l: value.l ? new Types.ObjectId(value.l.$oid) : undefined,
|
|
||||||
p: value.p ? new Types.ObjectId(value.p.$oid) : undefined,
|
|
||||||
m: value.m ? new Types.ObjectId(value.m.$oid) : undefined,
|
|
||||||
sn: value.sn ? new Types.ObjectId(value.sn.$oid) : undefined
|
|
||||||
};
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case "UnlockWeapons": {
|
|
||||||
inventory.LockedWeaponGroup = undefined;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
default:
|
default:
|
||||||
// Equipment XP updates
|
// Equipment XP updates
|
||||||
if (equipmentKeys.includes(key as TEquipmentKey)) {
|
if (equipmentKeys.includes(key as TEquipmentKey)) {
|
||||||
|
@ -45,7 +45,6 @@ export interface IInventoryDatabase
|
|||||||
| "Nemesis"
|
| "Nemesis"
|
||||||
| "EntratiVaultCountResetDate"
|
| "EntratiVaultCountResetDate"
|
||||||
| "BrandedSuits"
|
| "BrandedSuits"
|
||||||
| "LockedWeaponGroup"
|
|
||||||
| TEquipmentKey
|
| TEquipmentKey
|
||||||
>,
|
>,
|
||||||
InventoryDatabaseEquipment {
|
InventoryDatabaseEquipment {
|
||||||
@ -76,7 +75,6 @@ export interface IInventoryDatabase
|
|||||||
Nemesis?: INemesisDatabase;
|
Nemesis?: INemesisDatabase;
|
||||||
EntratiVaultCountResetDate?: Date;
|
EntratiVaultCountResetDate?: Date;
|
||||||
BrandedSuits?: Types.ObjectId[];
|
BrandedSuits?: Types.ObjectId[];
|
||||||
LockedWeaponGroup?: ILockedWeaponGroupDatabase;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface IQuestKeyDatabase {
|
export interface IQuestKeyDatabase {
|
||||||
@ -351,7 +349,6 @@ export interface IInventoryClient extends IDailyAffiliations, InventoryClientEqu
|
|||||||
EchoesHexConquestActiveFrameVariants?: string[];
|
EchoesHexConquestActiveFrameVariants?: string[];
|
||||||
EchoesHexConquestActiveStickers?: string[];
|
EchoesHexConquestActiveStickers?: string[];
|
||||||
BrandedSuits?: IOid[];
|
BrandedSuits?: IOid[];
|
||||||
LockedWeaponGroup?: ILockedWeaponGroupClient;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface IAffiliation {
|
export interface IAffiliation {
|
||||||
@ -1152,19 +1149,3 @@ export interface ISongChallenge {
|
|||||||
Song: string;
|
Song: string;
|
||||||
Difficulties: number[];
|
Difficulties: number[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ILockedWeaponGroupClient {
|
|
||||||
s: IOid;
|
|
||||||
p?: IOid;
|
|
||||||
l?: IOid;
|
|
||||||
m?: IOid;
|
|
||||||
sn?: IOid;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface ILockedWeaponGroupDatabase {
|
|
||||||
s: Types.ObjectId;
|
|
||||||
p?: Types.ObjectId;
|
|
||||||
l?: Types.ObjectId;
|
|
||||||
m?: Types.ObjectId;
|
|
||||||
sn?: Types.ObjectId;
|
|
||||||
}
|
|
||||||
|
@ -17,8 +17,7 @@ import {
|
|||||||
ILoreFragmentScan,
|
ILoreFragmentScan,
|
||||||
IUpgradeClient,
|
IUpgradeClient,
|
||||||
ICollectibleEntry,
|
ICollectibleEntry,
|
||||||
IDiscoveredMarker,
|
IDiscoveredMarker
|
||||||
ILockedWeaponGroupClient
|
|
||||||
} from "./inventoryTypes/inventoryTypes";
|
} from "./inventoryTypes/inventoryTypes";
|
||||||
|
|
||||||
export interface IAffiliationChange {
|
export interface IAffiliationChange {
|
||||||
@ -109,9 +108,6 @@ export type IMissionInventoryUpdateRequest = {
|
|||||||
Count: number;
|
Count: number;
|
||||||
}[];
|
}[];
|
||||||
DiscoveredMarkers?: IDiscoveredMarker[];
|
DiscoveredMarkers?: IDiscoveredMarker[];
|
||||||
LockedWeaponGroup?: ILockedWeaponGroupClient; // sent when captured by zanuka
|
|
||||||
UnlockWeapons?: boolean; // sent when recovered weapons from zanuka capture
|
|
||||||
IncHarvester?: boolean; // sent when recovered weapons from zanuka capture
|
|
||||||
} & {
|
} & {
|
||||||
[K in TEquipmentKey]?: IEquipmentClient[];
|
[K in TEquipmentKey]?: IEquipmentClient[];
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user