ships.experimental effect costs.Function.getExperimentalEffectCost - Elite-Dangerous-Almanac/Almanac-Core GitHub Wiki

@elite-dangerous-almanac/core / ships/experimental-effect-costs / getExperimentalEffectCost

Function: getExperimentalEffectCost()

getExperimentalEffectCost(experimentalEffectSymbol): readonly EngineeringMaterial[] | null

Defined in: src/ships/experimental-effect-costs.ts:60

Look up an experimental effect's one-application material cost.

Parameters

experimentalEffectSymbol

string

The effect id, e.g. "special_fsd_heavy", matched case-insensitively after trimming surrounding whitespace.

Returns

readonly EngineeringMaterial[] | null

The frozen material list, or null if the effect is unknown.

Remarks

Materials are the whole cost: an experimental effect charges no Merc Coin, unlike the blueprints whose getBlueprintCost reports a non-zero mercCoins.

Throws

If experimentalEffectSymbol is present and not a string. A nullish experimentalEffectSymbol is a miss, answered the way an unrecognised one is.

Example

import { getExperimentalEffectCost } from '@elite-dangerous-almanac/core/ships/experimental-effect-costs';

getExperimentalEffectCost('special_fsd_heavy');
// -> [{ symbol: 'DisruptedWakeEchoes', ... }, ...]
⚠️ **GitHub.com Fallback** ⚠️