feat: complete Rising Tide with buying railjack #2922
@ -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