manage Harvestable field
This commit is contained in:
parent
fe11ee4663
commit
4660b6cce0
@ -530,12 +530,17 @@ export const addMissionInventoryUpdates = async (
|
||||
m: value.m ? new Types.ObjectId(value.m.$oid) : undefined,
|
||||
sn: value.sn ? new Types.ObjectId(value.sn.$oid) : undefined
|
||||
};
|
||||
inventory.Harvestable = false;
|
||||
break;
|
||||
}
|
||||
case "UnlockWeapons": {
|
||||
inventory.LockedWeaponGroup = undefined;
|
||||
break;
|
||||
}
|
||||
case "IncHarvester": {
|
||||
inventory.Harvestable = true;
|
||||
break;
|
||||
}
|
||||
case "CurrentLoadOutIds": {
|
||||
if (value.LoadOuts) {
|
||||
const loadout = await Loadout.findOne({ loadoutOwnerId: inventory.accountOwnerId });
|
||||
|
Loading…
x
Reference in New Issue
Block a user