Access every wearable and placeable equipment item in Dinkum, including license and skill requirements and Windmill/Solar Panel compatibility.
Type
Equipment
| 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 |
description | string | What the item does |
requirementLevel | number | null | Skill or license level required, or null if none |
requirementType | string? | Name of the license or skill required |
shinyDiscCount | number? | Shiny Discs required to craft |
berkoniumOreCount | number? | Berkonium Ore required to craft |
windmillCompatable | boolean? | Can be powered by a Windmill |
solarPanelCompatable | boolean? | Can be powered by a Solar Panel |
inputs | Resource[]? | Other crafting inputs |
buyUnits | BuyUnits? | 'Dinks' or 'Permit Points', when purchasable |
Resource is { name: string; img: string; count: number }. See TypeScript integration for the shared Resource and BuyUnits types.
Factory
import { equipment } from 'dinkum-data'
equipment()
equipment(source)
Filters
| Method | Signature | Description |
|---|
bySource | bySource(source: string) | Filter to equipment obtainable from the given source (case-insensitive substring match). |
byRequirementType | byRequirementType(type: string) | Filter by the license or skill required to unlock the item (case-insensitive). Items with no requirement never match. |
windmillCompatible | windmillCompatible() | Filter to equipment compatible with the Windmill. |
solarPanelCompatible | solarPanelCompatible() | Filter to equipment compatible with the Solar Panel. |
import { equipment } from 'dinkum-data'
equipment().bySource('Crafting Table').get()
equipment().byRequirementType('Irrigation Licence').get()
equipment().windmillCompatible().get()
equipment().solarPanelCompatible().get()
Sorts
| Method | Signature | Default | Description |
|---|
sortByBaseSellPrice | sortByBaseSellPrice(order?: 'asc' | 'desc') | 'desc' | Sort by base sell price. |
Terminal methods
| Method | Returns | Description |
|---|
.get() | Equipment[] | All results |
.first() | Equipment | undefined | First result |
.find(id) | Equipment | undefined | Find by id |
.findByName(name) | Equipment | undefined | Case-insensitive exact name match |
.search(query) | Equipment[] | Case-insensitive partial name match |
.count() | number | Number of results |
Examples
import { equipment } from 'dinkum-data'
equipment().bySource('Crafting Table').get()
equipment().windmillCompatible().get()
equipment().sortByBaseSellPrice().get()
Next steps