Resources & Recipes

Food Modeller Recipes

Access every Food Modeller conversion in Dinkum, turning food and crops into display furniture.


Type

This module uses the same shared Recipe type as Crafting Recipes.

interface Recipe {
  id: string
  name: string
  img: string
  source?: string[]
  baseSellPrice: number
  buyPrice?: number
  outputCount?: number | 'Varies'
  variants: ResourceVariant[]
  buffs?: Buffs
}
FieldTypeDescription
idstringStable identifier.
namestringDisplay name.
imgstringPath to the display item's icon, relative to images/.
sourcestring[]?Where the recipe is obtained.
baseSellPricenumberBase sell price in Dinks.
buyPricenumber?Purchase price, if purchasable.
outputCountnumber | 'Varies'?Quantity produced per conversion.
variantsResourceVariant[]Item sets that produce this display piece.
buffsBuffs?Consumable buff effects, if any.

Factory

import { foodModellerRecipes } from 'dinkum-data'

foodModellerRecipes() // all 89 recipes
foodModellerRecipes(source) // wrap a pre-filtered array

Filters

bySource(source: string)

Filter to recipes obtainable from the given source (case-insensitive substring match).

foodModellerRecipes().bySource('Food Modeller').get()

Sorts

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

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


Terminal methods

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

Examples

import { foodModellerRecipes } from 'dinkum-data'

// Everything the Food Modeller can produce, most valuable first
foodModellerRecipes().sortByBaseSellPrice().get()

Next steps

Previous
Crafting recipes