Wildlife & Farming

Seeds

Access every plantable seed in Dinkum, for crops, trees, and bushes alike, with growth timing and season.


Type

Seed

FieldTypeDescription
idstringStable identifier
namestringDisplay name
imgstringPath to the seed's icon, relative to images/
sourcestring[]?Where the seed is purchased or obtained
baseSellPricenumberBase sell price in Dinks
buyPricenumber?Purchase price, if purchasable
categorystring'Crop Seed', 'Tree Seed', 'Bush Seed', etc.
growthPeriodnumberDays to reach maturity
outputCountMinnumber?Minimum yield per harvest
outputCountMaxnumber?Maximum yield per harvest
regrowthnumber?Days between harvests once mature
seasonSeason[]Seasons the seed can be planted in

Factory

import { seeds } from 'dinkum-data'

seeds() // all 36 seeds
seeds(source) // wrap a pre-filtered array

Filters

MethodSignatureDescription
byCategorybyCategory(category: string)Filter by seed category (exact match, case-insensitive).
bySeasonbySeason(season: Season)Filter to seeds plantable in the given season.
import { seeds } from 'dinkum-data'

seeds().byCategory('Tree Seed').get()
seeds().bySeason('Summer').get()

Sorts

MethodSignatureDefaultDescription
sortByGrowthPeriodsortByGrowthPeriod(order?: 'asc' | 'desc')'asc'Sort by growth period in days.

Terminal methods

MethodReturnsDescription
.get()Seed[]All results
.first()Seed | undefinedFirst result
.find(id)Seed | undefinedFind by id
.findByName(name)Seed | undefinedCase-insensitive exact name match
.search(query)Seed[]Case-insensitive partial name match
.count()numberNumber of results

Examples

import { seeds } from 'dinkum-data'

// Every summer seed, fastest growing first
seeds().bySeason('Summer').sortByGrowthPeriod().get()

// Every tree seed
seeds().byCategory('Tree Seed').get()

Next steps

Previous
Crops