fix: check addItems quantity for Drones & EmailItems #1612

Merged
Sainan merged 2 commits from fix-quantity into main 2025-04-14 07:13:52 -07:00
Showing only changes of commit 5e5616b3ca - Show all commits

View File

@ -558,7 +558,7 @@ export const addItem = async (
} }
if (typeName in ExportEmailItems) { if (typeName in ExportEmailItems) {
if (quantity != 1) { if (quantity != 1) {
throw new Error(`unexpected acquisition quantity of EmailItems: got ${quantity}, expected 0`); throw new Error(`unexpected acquisition quantity of EmailItems: got ${quantity}, expected 1`);
} }
return await addEmailItem(inventory, typeName); return await addEmailItem(inventory, typeName);
} }