equipment.modification costs.Function.getPersonalModificationCost - Elite-Dangerous-Almanac/Almanac-Core GitHub Wiki
@elite-dangerous-almanac/core / equipment/modification-costs / getPersonalModificationCost
getPersonalModificationCost(
symbol): readonlyPersonalEngineeringIngredient[] |null
Defined in: src/equipment/modification-costs.ts:49
Look up a personal modification's one-application material cost.
string
Recipe symbol, such as "suit_nightvision" or
"weapon_range_kinetic", matched case-insensitively after trimming surrounding
whitespace.
readonly PersonalEngineeringIngredient[] | null
The frozen ingredient list, or null when unknown.
If symbol is present and not a string. A nullish symbol is a
miss, answered like an unrecognised one.
import { getPersonalModificationCost } from '@elite-dangerous-almanac/core/equipment/modification-costs';
getPersonalModificationCost('suit_nightvision')?.[0]?.symbol; // -> 'surveillanceequipment'