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,
|
m: value.m ? new Types.ObjectId(value.m.$oid) : undefined,
|
||||||
sn: value.sn ? new Types.ObjectId(value.sn.$oid) : undefined
|
sn: value.sn ? new Types.ObjectId(value.sn.$oid) : undefined
|
||||||
};
|
};
|
||||||
|
inventory.Harvestable = false;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case "UnlockWeapons": {
|
case "UnlockWeapons": {
|
||||||
inventory.LockedWeaponGroup = undefined;
|
inventory.LockedWeaponGroup = undefined;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case "IncHarvester": {
|
||||||
|
inventory.Harvestable = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
case "CurrentLoadOutIds": {
|
case "CurrentLoadOutIds": {
|
||||||
if (value.LoadOuts) {
|
if (value.LoadOuts) {
|
||||||
const loadout = await Loadout.findOne({ loadoutOwnerId: inventory.accountOwnerId });
|
const loadout = await Loadout.findOne({ loadoutOwnerId: inventory.accountOwnerId });
|
||||||
|
Loading…
x
Reference in New Issue
Block a user