Update personalRoomsService.ts
All checks were successful
Build / build (pull_request) Successful in 2m52s
All checks were successful
Build / build (pull_request) Successful in 2m52s
This commit is contained in:
parent
23bef17ce1
commit
87b859b8b3
@ -25,10 +25,9 @@ export const unlockShipFeature = async (inventory: TInventoryDatabaseDocument, s
|
||||
} else {
|
||||
personalRooms.Ship.Features.push(shipFeature);
|
||||
await personalRooms.save();
|
||||
|
||||
const miscItem = inventory.MiscItems.find(x => x.ItemType === shipFeature);
|
||||
if (miscItem && miscItem.ItemCount > 0) await addItem(inventory, shipFeature, -1);
|
||||
}
|
||||
const miscItem = inventory.MiscItems.find(x => x.ItemType === shipFeature);
|
||||
if (miscItem && miscItem.ItemCount > 0) await addItem(inventory, shipFeature, miscItem.ItemCount * -1);
|
||||
};
|
||||
|
||||
export const createGarden = (): IGardeningDatabase => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user