Wildlife & Farming

Critters

Access every Museum-donatable critter in Dinkum, with biome, rarity, season, and time-of-day data.


Type

Critter

Critter is an alias for PediaItem. See TypeScript integration for the full shared shape.

FieldTypeDescription
idstringStable identifier
namestringDisplay name
imgstringPath to the critter's icon, relative to images/
sourcestring[]?Where the critter is obtained
baseSellPricenumberBase sell price in Dinks
buyPricenumber?Purchase price, if purchasable
biomeBiome[]Biomes the critter is found in
timeFoundTimePeriod[]Times of day the critter is active
seasonsSeason[]Seasons the critter is active
rarityRarityLevel'Common', 'Uncommon', 'Rare', 'Very Rare', or 'Super Rare'

Factory

import { critters } from 'dinkum-data'

critters() // all 25 critters
critters(source) // wrap a pre-filtered array

Filters

MethodSignatureDescription
byBiomebyBiome(biome: Biome)Filter to critters found in the given biome.
byRaritybyRarity(rarity: RarityLevel)Filter by rarity.
bySeasonbySeason(season: Season)Filter to critters active in the given season.
byTimebyTime(time: TimePeriod)Filter to critters active during the given time period.
import { critters } from 'dinkum-data'

critters().byBiome('Beach').get()
critters().byRarity('Rare').get()
critters().bySeason('Winter').get()
critters().byTime('Day').get()

Sorts

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

Terminal methods

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

Examples

import { critters } from 'dinkum-data'

// Rare critters found on the Beach
critters().byBiome('Beach').byRarity('Rare').get()

// Most valuable critters
critters().sortByBaseSellPrice().get()

Next steps

Previous
Bugs
Next
Fish