@jeremyckahn/farmhand
Version:
A farming game
19 lines (15 loc) • 354 B
JavaScript
/** @typedef {farmhand.keg} keg */
import { v4 as uuid } from 'uuid'
import { carrot } from '../../data/crops/index.js'
/**
* @param {Partial<keg>} overrides
* @returns {keg}
*/
export const getKegStub = (overrides = {}) => {
return {
id: uuid(),
itemId: carrot.id,
daysUntilMature: carrot.daysToFerment ?? 0,
...overrides,
}
}