Gear & Equipment

Vehicles

Access every glider and other rideable vehicle in Dinkum, with their unlock requirements.


Type

Vehicle

FieldTypeDescription
idstringStable identifier
namestringDisplay name
imgstringPath to the vehicle's icon, relative to images/
sourcestring[]Where the vehicle is obtained
baseSellPricenumberBase sell price in Dinks
buyPricenumber?Purchase price, if purchasable
requirementLevelnumber | nullSkill or license level required, or null if none
requirementTypestring?Name of the license or skill required
shinyDiscCountnumber?Shiny Discs required to craft
berkoniumOreCountnumber?Berkonium Ore required to craft
windmillCompatableboolean?Can be powered by a Windmill
solarPanelCompatableboolean?Can be powered by a Solar Panel
inputsResource[]?Other crafting inputs

Resource is { name: string; img: string; count: number }. Unlike Tools, Weapons, and Equipment, Vehicle has no buyUnits field: every vehicle's buyPrice is in Dinks.


Factory

import { vehicles } from 'dinkum-data'

vehicles() // all 27 vehicles
vehicles(source) // wrap a pre-filtered array

Filters

MethodSignatureDescription
bySourcebySource(source: string)Filter to vehicles obtainable from the given source (case-insensitive substring match).
byRequirementTypebyRequirementType(type: string)Filter by the license or skill required to unlock the vehicle (case-insensitive). Vehicles with no requirement never match.
import { vehicles } from 'dinkum-data'

vehicles().bySource('Deep Mine').get()
vehicles().byRequirementType('Vehicle Licence').get()

Sorts

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

Terminal methods

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

Examples

import { vehicles } from 'dinkum-data'

// Everything found in the Deep Mine
vehicles().bySource('Deep Mine').get()

// Every vehicle that needs a Vehicle Licence
vehicles().byRequirementType('Vehicle Licence').get()

Next steps

Previous
Cassettes