Access every placeable furniture item for houses and buildings in Dinkum, including catalogue pricing and set membership.
Type
Furniture
| Field | Type | Description |
|---|
id | string | Stable identifier |
name | string | Display name |
img | string | Path to the item's icon, relative to images/ |
source | string[]? | Where the item is obtained |
baseSellPrice | number | Base sell price in Dinks |
buyPrice | number? | Purchase price, if purchasable |
displayPrice | number? | Price shown at Melvin's Catalogue |
cataloguePrice | number? | Actual catalogue purchase price |
melvinsCatalogue | boolean | Whether the item is available in Melvin's Catalogue |
furnitureSet | string? | Set the item belongs to, if any |
Factory
import { furniture } from 'dinkum-data'
furniture()
furniture(source)
Filters
| Method | Signature | Description |
|---|
bySet | bySet(set: string) | Filter to furniture belonging to the given set (case-insensitive). Items with no set never match. |
bySource | bySource(source: string) | Filter to furniture obtainable from the given source (case-insensitive substring match). |
melvinsCatalogue | melvinsCatalogue() | 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
| Method | Signature | Default | Description |
|---|
sortByBaseSellPrice | sortByBaseSellPrice(order?: 'asc' | 'desc') | 'desc' | Sort by base sell price. |
Terminal methods
| Method | Returns | Description |
|---|
.get() | Furniture[] | All results |
.first() | Furniture | undefined | First result |
.find(id) | Furniture | undefined | Find by id |
.findByName(name) | Furniture | undefined | Case-insensitive exact name match |
.search(query) | Furniture[] | Case-insensitive partial name match |
.count() | number | Number of results |
Examples
import { furniture } from 'dinkum-data'
furniture().melvinsCatalogue().sortByBaseSellPrice().get()
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