Resources & Recipes

Trophies

Access every trophy awarded from Bug Catching and Fish Catching Competitions in Dinkum.


Type

Trophy is an alias for BaseResource, with no extra fields.

interface Trophy {
  id: string
  name: string
  img: string
  source?: string[]
  baseSellPrice: number
  buyPrice?: number
}
FieldTypeDescription
idstringStable identifier.
namestringDisplay name.
imgstringPath to the trophy's icon, relative to images/.
sourcestring[]?The competition the trophy is awarded from.
baseSellPricenumberBase sell price in Dinks.
buyPricenumber?Purchase price, if purchasable.

Trophies have no filter methods, only the standard terminal methods below.


Factory

import { trophies } from 'dinkum-data'

trophies() // all 6 trophies
trophies(source) // wrap a pre-filtered array

Terminal methods

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

Examples

import { trophies } from 'dinkum-data'

trophies().get()
trophies().findByName('Gold Bug Comp Trophy')

Next steps

  • See Relics for another collectible resource module
  • Read core concepts for the shared QueryBase terminal methods
Previous
Relics