feat: complete Rising Tide with buying railjack #2922

Merged
Sainan merged 6 commits from AMelonInsideLemon/SpaceNinjaServer:complete-rising-tide into main 2025-10-21 23:50:05 -07:00
Showing only changes of commit 87b859b8b3 - Show all commits

View File

@ -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 => {