Fashion & Home

Clothing

Access every wearable clothing item in Dinkum across every slot, including catalogue availability and set membership.


Type

Clothing

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 | nullPrice shown at Clover's Catalogue, or null if unavailable
cataloguePricenumber | nullActual catalogue purchase price, or null if unavailable
cloversCataloguebooleanWhether the item is available in Clover's Catalogue
slotClothingSlot[]Slots the item occupies: 'Head', 'Face', 'Body', 'Legs', 'Feet'
typestringClothing type, for example 'Hood', 'Shirt', 'Boots'
setstringSet name, or an empty string if not part of a set

The exact type values valid for each slot are enforced by the separate Clothing Slots module.


Factory

import { clothing } from 'dinkum-data'

clothing() // all 532 items
clothing(source) // wrap a pre-filtered array

Filters

MethodSignatureDescription
bySlotbySlot(slot: ClothingSlot)Filter to clothing that occupies the given slot.
byTypebyType(type: string)Filter by clothing type (case-insensitive).
bySetbySet(set: string)Filter to clothing belonging to the given set (case-insensitive).
cloversCataloguecloversCatalogue()Filter to clothing available in Clover's Catalogue.
import { clothing } from 'dinkum-data'

clothing().bySlot('Head').get()
clothing().byType('Hood').get()
clothing().bySet('Aurora Set').get()
clothing().cloversCatalogue().get()

Sorts

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

Terminal methods

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

Examples

import { clothing } from 'dinkum-data'

// Every hat, most valuable first
clothing().bySlot('Head').sortByBaseSellPrice().get()

// Everything from the Aurora set
clothing().bySet('Aurora Set').get()

// Everything currently in Clover's Catalogue
clothing().cloversCatalogue().get()

Next steps

Previous
Vehicles