equipment.modification costs.Function.getPersonalModificationCost - Elite-Dangerous-Almanac/Almanac-Core GitHub Wiki

@elite-dangerous-almanac/core / equipment/modification-costs / getPersonalModificationCost

Function: getPersonalModificationCost()

getPersonalModificationCost(symbol): readonly PersonalEngineeringIngredient[] | null

Defined in: src/equipment/modification-costs.ts:49

Look up a personal modification's one-application material cost.

Parameters

symbol

string

Recipe symbol, such as "suit_nightvision" or "weapon_range_kinetic", matched case-insensitively after trimming surrounding whitespace.

Returns

readonly PersonalEngineeringIngredient[] | null

The frozen ingredient list, or null when unknown.

Throws

If symbol is present and not a string. A nullish symbol is a miss, answered like an unrecognised one.

Example

import { getPersonalModificationCost } from '@elite-dangerous-almanac/core/equipment/modification-costs';
getPersonalModificationCost('suit_nightvision')?.[0]?.symbol; // -> 'surveillanceequipment'
⚠️ **GitHub.com Fallback** ⚠️