Resources & Recipes

Cooking Recipes

Access every cookable recipe in Dinkum, with ingredients, buffs, and where each dish sells for the most.


Type

CookingRecipe extends the shared Recipe type with a few cooking-specific fields.

interface CookingRecipe {
  id: string
  name: string
  img: string
  baseSellPrice: number
  outputCount: number | 'Varies'
  variants: ResourceVariant[]
  buffs?: Buffs
  cookingLocation: string[]
  sheilasSellPrice?: number
  tedsSellPrice?: number | null
  jimmysSellPrice?: number
}
FieldTypeDescription
idstringStable identifier.
namestringDisplay name.
imgstringPath to the dish's icon, relative to images/.
baseSellPricenumberBase sell price in Dinks.
outputCountnumber | 'Varies'Quantity produced per craft.
variantsResourceVariant[]Ingredient sets that produce this recipe.
buffsBuffs?Consumable buff effects.
cookingLocationstring[]Where the recipe can be cooked.
sheilasSellPricenumber?Sell price at Sheila's.
tedsSellPricenumber | null?Sell price at Ted's, if he buys it.
jimmysSellPricenumber?Sell price at Jimmy's.

See TypeScript integration for the shared Recipe/ResourceVariant/Resource shapes this extends.


Factory

import { cookingRecipes } from 'dinkum-data'

cookingRecipes() // all 72 recipes
cookingRecipes(source) // wrap a pre-filtered array

Filters

byLocation(location: string)

Filter to recipes that can be cooked at the given location (exact match, case-insensitive).

cookingRecipes().byLocation('Campfire').get()

Sorts

sortByBaseSellPrice(order?: 'asc' | 'desc')

Sort by base sell price. Defaults to 'desc' (most valuable first).


Terminal methods

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

Examples

import { cookingRecipes } from 'dinkum-data'

// Everything cookable on a Campfire, most valuable first
cookingRecipes().byLocation('Campfire').sortByBaseSellPrice().get()

Data notes

As of the Cooking Table review, Mighty Sandwich's baseSellPrice is a placeholder 0. Neither its wiki page nor the Cooking Table recipe table list a real sell price for it yet.


Next steps

Previous
Other craftables