feat: obtaining crewship related items on mission update #897
@ -926,7 +926,6 @@ export const addCrewShipRawSalvage = (
|
|||||||
|
|
||||||
if (itemIndex !== -1) {
|
if (itemIndex !== -1) {
|
||||||
CrewShipRawSalvage[itemIndex].ItemCount += ItemCount;
|
CrewShipRawSalvage[itemIndex].ItemCount += ItemCount;
|
||||||
inventory.markModified(`CrewShipRawSalvage.${itemIndex}.ItemCount`);
|
|
||||||
} else {
|
} else {
|
||||||
Sainan marked this conversation as resolved
|
|||||||
CrewShipRawSalvage.push({ ItemCount, ItemType });
|
CrewShipRawSalvage.push({ ItemCount, ItemType });
|
||||||
}
|
}
|
||||||
@ -941,7 +940,6 @@ export const addCrewShipAmmo = (inventory: TInventoryDatabaseDocument, itemsArra
|
|||||||
|
|
||||||
if (itemIndex !== -1) {
|
if (itemIndex !== -1) {
|
||||||
CrewShipAmmo[itemIndex].ItemCount += ItemCount;
|
CrewShipAmmo[itemIndex].ItemCount += ItemCount;
|
||||||
inventory.markModified(`CrewShipAmmo.${itemIndex}.ItemCount`);
|
|
||||||
} else {
|
} else {
|
||||||
CrewShipAmmo.push({ ItemCount, ItemType });
|
CrewShipAmmo.push({ ItemCount, ItemType });
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user
markModified
shouldn't be needed with a proper schema.