feat: handle KubrowPetEggs in missionInventoryUpdate
This commit is contained in:
parent
de36e2ee8d
commit
62ae4fabb6
@ -506,6 +506,16 @@ export const addMissionInventoryUpdates = async (
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "KubrowPetEggs": {
|
||||
for (const egg of value) {
|
||||
inventory.KubrowPetEggs ??= [];
|
||||
inventory.KubrowPetEggs.push({
|
||||
ItemType: egg.ItemType,
|
||||
_id: new Types.ObjectId()
|
||||
});
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "DiscoveredMarkers": {
|
||||
for (const clientMarker of value) {
|
||||
const dbMarker = inventory.DiscoveredMarkers.find(x => x.tag == clientMarker.tag);
|
||||
|
@ -21,7 +21,8 @@ import {
|
||||
ILockedWeaponGroupClient,
|
||||
ILoadOutPresets,
|
||||
IInvasionProgressClient,
|
||||
IWeaponSkinClient
|
||||
IWeaponSkinClient,
|
||||
IKubrowPetEggClient
|
||||
} from "./inventoryTypes/inventoryTypes";
|
||||
import { IGroup } from "./loginTypes";
|
||||
|
||||
@ -118,6 +119,7 @@ export type IMissionInventoryUpdateRequest = {
|
||||
NumExtraRewards: number;
|
||||
Count: number;
|
||||
}[];
|
||||
KubrowPetEggs?: IKubrowPetEggClient[];
|
||||
DiscoveredMarkers?: IDiscoveredMarker[];
|
||||
LockedWeaponGroup?: ILockedWeaponGroupClient; // sent when captured by zanuka
|
||||
UnlockWeapons?: boolean; // sent when recovered weapons from zanuka capture
|
||||
|
Loading…
x
Reference in New Issue
Block a user