ships.Function.getPreEngineeredJournalModifiers - Elite-Dangerous-Almanac/Almanac-Core GitHub Wiki
@elite-dangerous-almanac/core / ships / getPreEngineeredJournalModifiers
getPreEngineeredJournalModifiers(
variant):EngineeringModifier[]
Defined in: src/ships/pre-engineered-stats.ts:155
The journal-shaped fixed modifiers a pre-engineered variant reports when fitted.
Primitive recipe labels are translated to the labels a Loadout event uses for the
variant's exact base module. A baked damage conversion is expanded into the journal's
per-damage-type modifiers. Festive variants therefore resolve through the same path as
every other fixed article.
A pre-engineered variant.
Its computable fixed modifiers in journal representation, or an empty array when its symbol is unknown or it moves no stat the catalogue carries. A measured Mercenary row combines its fixed block with its baked experimental effect.
import { getPreEngineeredVariants } from '@elite-dangerous-almanac/core/ships/pre-engineered';
import { getPreEngineeredJournalModifiers } from '@elite-dangerous-almanac/core/ships/pre-engineered-stats';
const red = getPreEngineeredVariants('Hpt_FlakMortar_Turret_Medium')
.find((variant) => variant.blueprintSymbol === 'Decorative_Red')!;
getPreEngineeredJournalModifiers(red);
// -> [{ Label: 'DamagePerSecond', Value: 0.17, OriginalValue: 17 }, { Label: 'Damage', Value: 0.34, OriginalValue: 34 }]