forked from OpenWF/SpaceNinjaServer
Update personalRoomsService.ts
This commit is contained in:
parent
23bef17ce1
commit
87b859b8b3
@ -25,10 +25,9 @@ export const unlockShipFeature = async (inventory: TInventoryDatabaseDocument, s
|
|||||||
} else {
|
} else {
|
||||||
personalRooms.Ship.Features.push(shipFeature);
|
personalRooms.Ship.Features.push(shipFeature);
|
||||||
await personalRooms.save();
|
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 => {
|
export const createGarden = (): IGardeningDatabase => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user