DotNet.Equipment.Class.PersonalModificationCatalogue - Elite-Dangerous-Almanac/Almanac-Core GitHub Wiki

EliteDangerousAlmanac / Equipment / PersonalModificationCatalogue

Class: PersonalModificationCatalogue

Defined in: dotnet/src/EliteDangerousAlmanac/Equipment/PersonalModificationCatalogue.cs:47

The personal-modification recipes and what each one costs.

Remarks

A recipe is keyed by its symbol, such as suit_increasedmeleedamage. The symbol a journal writes is not always the recipe's own: three weapon recipes share one journal spelling across the kinetic, laser and plasma menus, and ModificationJournal resolves that spelling against the weapon it was read from.

The catalogues load from their shared data files on first use. Every record is immutable, so one caller cannot change another caller's answers.

Properties

All

static All: IReadOnlyDictionary<string, PersonalModification>

Defined in: dotnet/src/EliteDangerousAlmanac/Equipment/PersonalModificationCatalogue.cs:58

Every modification recipe, keyed by its symbol.

AllCosts

static AllCosts: IReadOnlyDictionary<string, IReadOnlyList<PersonalEngineeringIngredient>>

Defined in: dotnet/src/EliteDangerousAlmanac/Equipment/PersonalModificationCatalogue.cs:61

Every recipe's materials, keyed by the recipe's symbol.

Methods

Find()

static Find(symbol): PersonalModification?

Defined in: dotnet/src/EliteDangerousAlmanac/Equipment/PersonalModificationCatalogue.cs:82

Finds a modification recipe by its symbol.

Parameters

symbol

string?

The symbol, such as weapon_scope.

Returns

PersonalModification?

The recipe, or null for a symbol no recipe carries.

Remarks

Case and surrounding whitespace are ignored. An absent symbol is a miss.

FindCost()

static FindCost(symbol): IReadOnlyList<PersonalEngineeringIngredient>?

Defined in: dotnet/src/EliteDangerousAlmanac/Equipment/PersonalModificationCatalogue.cs:92

Finds what one modification recipe costs.

Parameters

symbol

string?

The recipe's symbol, such as weapon_scope.

Returns

IReadOnlyList<PersonalEngineeringIngredient>?

The materials the recipe asks for, or null for a symbol no recipe carries.

Remarks

Case and surrounding whitespace are ignored. An absent symbol is a miss.

⚠️ **GitHub.com Fallback** ⚠️