Wildlife & Farming

Crops

Access every farmable crop in Dinkum, along with the seed each one grows from.

Every Crop embeds the Seed it grows from directly on its own seed field. For the full seed catalog, including tree and bush seeds that don't have a corresponding Crop entry, see the standalone Seeds page.


Type

Crop

FieldTypeDescription
idstringStable identifier
namestringDisplay name
imgstringPath to the crop's icon, relative to images/
sourcestring[]?Where the seed is purchased
baseSellPricenumberBase sell price in Dinks
buyPricenumber?Seed purchase price
buffsBuffs?Consumable buff effects, if edible
seedSeed?The seed this crop grows from

Factory

import { crops } from 'dinkum-data'

crops() // all 17 crops
crops(source) // wrap a pre-filtered array

Filters

MethodSignatureDescription
bySeasonbySeason(season: Season)Filter to crops whose seed is plantable in the given season. Crops with no seed never match.
import { crops } from 'dinkum-data'

crops().bySeason('Summer').get()

Sorts

MethodSignatureDefaultDescription
sortByBaseSellPricesortByBaseSellPrice(order?: 'asc' | 'desc')'desc'Sort by base sell price.

Terminal methods

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

Examples

import { crops } from 'dinkum-data'

// Every crop plantable in Summer, most valuable first
crops().bySeason('Summer').sortByBaseSellPrice().get()

// Look up by name
crops().findByName('Beetroot')

Next steps

  • See Seeds for the full seed catalog, including trees and bushes
  • Browse Cooking Recipes for what harvested crops can become
  • Read the query builder guide for more filter patterns
Previous
Fish
Next
Seeds