Fashion & Home

Furniture

Access every placeable furniture item for houses and buildings in Dinkum, including catalogue pricing and set membership.


Type

Furniture

FieldTypeDescription
idstringStable identifier
namestringDisplay name
imgstringPath to the item's icon, relative to images/
sourcestring[]?Where the item is obtained
baseSellPricenumberBase sell price in Dinks
buyPricenumber?Purchase price, if purchasable
displayPricenumber?Price shown at Melvin's Catalogue
cataloguePricenumber?Actual catalogue purchase price
melvinsCataloguebooleanWhether the item is available in Melvin's Catalogue
furnitureSetstring?Set the item belongs to, if any

Factory

import { furniture } from 'dinkum-data'

furniture() // all 443 items
furniture(source) // wrap a pre-filtered array

Filters

MethodSignatureDescription
bySetbySet(set: string)Filter to furniture belonging to the given set (case-insensitive). Items with no set never match.
bySourcebySource(source: string)Filter to furniture obtainable from the given source (case-insensitive substring match).
melvinsCataloguemelvinsCatalogue()Filter to furniture available in Melvin's Catalogue.
import { furniture } from 'dinkum-data'

furniture().bySet('Cabin Set').get()
furniture().bySource('Recycling Bin').get()
furniture().melvinsCatalogue().get()

Sorts

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

Terminal methods

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

Examples

import { furniture } from 'dinkum-data'

// Everything in Melvin's Catalogue, most valuable first
furniture().melvinsCatalogue().sortByBaseSellPrice().get()

// Everything obtainable from the Recycling Bin
furniture().bySource('Recycling Bin').get()

Next steps

  • See Decorations for outdoor placeable items, some of which also appear here
  • Browse Clothing for another catalogue-priced module
  • Read the query builder guide for more filter patterns
Previous
Clothing slots