feat: handle KubrowPetEggs in missionInventoryUpdate (#1876)
Closes #1866 Reviewed-on: #1876 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
This commit is contained in:
parent
db0e0d80dd
commit
9e94083875
@ -513,6 +513,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