@jeremyckahn/farmhand
Version:
A farming game
17 lines (13 loc) • 352 B
text/typescript
import { v4 as uuid } from 'uuid'
import { carrot } from '../../data/crops/index.js'
export const getKegStub = (
overrides: Partial<farmhand.keg> = {}
): farmhand.keg => {
const carrotItem = carrot as farmhand.item
return {
id: uuid(),
itemId: carrotItem.id,
daysUntilMature: carrotItem.daysToFerment ?? 0,
...overrides,
}
}