Shops

Medical Supplies

Access the complete stock list for Harvey's Clinic medical supplies with energy and health data using the chainable MedicalSupplyQuery API.

Quick Start

import { medicalSupplies } from 'stardew-valley-data'

// Get all medical supplies
const all = medicalSupplies().get()

// Sort by price, cheapest first
const sorted = medicalSupplies().sortByPrice().get()

// Find a specific item
const item = medicalSupplies().findByName('Energy Tonic')

Type Definition

Each item conforms to the MedicalSupply interface:

FieldTypeDescription
idstringUnique identifier.
namestringDisplay name of the item.
pricenumberPurchase price in gold.
descriptionstringIn-game description text.
energynumberEnergy restored when consumed.
healthnumberHealth restored when consumed.
imagestringPath to the item's image.

Query Methods

MedicalSupplyQuery extends QueryBase and inherits five terminal methods:

MethodReturnsDescription
get()MedicalSupply[]Return all results as an array.
first()MedicalSupply | undefinedReturn the first result.
find(id)MedicalSupply | undefinedFind an item by exact ID.
findByName(name)MedicalSupply | undefinedFind an item by name (case-insensitive).
count()numberReturn the number of results.

Sort Methods

MethodReturnsDescription
sortByPrice(order?)MedicalSupplyQuerySort by price. Pass 'asc' (default) or 'desc'.
sortByName(order?)MedicalSupplyQuerySort alphabetically by name. Pass 'asc' (default) or 'desc'.

Examples

List all items with energy and health values

import { medicalSupplies } from 'stardew-valley-data'

medicalSupplies()
  .sortByPrice()
  .get()
  .forEach((item) => {
    console.log(
      `${item.name} - ${item.price}g | +${item.energy} energy, +${item.health} health`,
    )
  })

Find the best value healing item

import { medicalSupplies } from 'stardew-valley-data'

const items = medicalSupplies().get()

const bestValue = items.reduce((best, item) => {
  const ratio = item.health / item.price
  const bestRatio = best.health / best.price
  return ratio > bestRatio ? item : best
})

console.log(
  `Best health/gold ratio: ${bestValue.name} (${bestValue.health} HP for ${bestValue.price}g)`,
)
Previous
Marnie's ranch
Next
Oasis