equipment.Function.resolvePersonalModificationForWeapon - Elite-Dangerous-Almanac/Almanac-Core GitHub Wiki
@elite-dangerous-almanac/core / equipment / resolvePersonalModificationForWeapon
resolvePersonalModificationForWeapon(
weaponSymbol,journalSymbol):string
Defined in: src/equipment/modification-journal.ts:37
Resolve the modification recipe a journal symbol identifies on a handheld weapon.
string
Frontier handheld-weapon symbol. A nullish or unknown weapon
cannot resolve a collision and leaves journalSymbol unchanged.
string
Symbol from the journal modification list. Matching ignores case and surrounding whitespace.
string
The recipe key used by PERSONAL_MODIFICATIONS and
PERSONAL_MODIFICATION_COSTS, or journalSymbol unchanged when no collision resolves.
If journalSymbol is not a string, or if a present weapon symbol
is not a string.
import { resolvePersonalModificationForWeapon } from '@elite-dangerous-almanac/core/equipment/modification-journal';
resolvePersonalModificationForWeapon(
'wpn_m_assaultrifle_kinetic_fauto',
'weapon_range',
); // -> 'weapon_range_kinetic'