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

EliteDangerousAlmanac / Equipment / PersonalUpgradeCosts

Class: PersonalUpgradeCosts

Defined in: dotnet/src/EliteDangerousAlmanac/Equipment/PersonalUpgradeCosts.cs:19

What climbing a suit or a weapon up its grade ladder costs.

Remarks

A suit family has its own ladder. Every weapon of one maker shares a ladder, so the cost is read from the weapon's upgrade group rather than from the weapon itself.

The stock article is grade one, so a ladder states the four steps that reach grades two through five. The Flight Suit climbs no ladder and answers no cost.

Methods

Suit()

static Suit(family, targetGrade, currentGrade?): IReadOnlyList<PersonalEngineeringIngredient>?

Defined in: dotnet/src/EliteDangerousAlmanac/Equipment/PersonalUpgradeCosts.cs:56

What climbing a suit from one grade to another costs altogether.

Parameters

family

string?

The suit family, such as utilitysuit.

targetGrade

int

The grade to reach, from one through five.

currentGrade

int = EquipmentGrades.Lowest

The grade owned now, from one through five.

Returns

IReadOnlyList<PersonalEngineeringIngredient>?

The materials every step between the two grades asks for, added together, or null where no suit carries the family, or the suit climbs no ladder. A target at or below the grade owned now costs nothing and answers an empty list.

Exceptions

ArgumentOutOfRangeException

Either grade is not one through five.

SuitStep()

static SuitStep(family, targetGrade): IReadOnlyList<PersonalEngineeringIngredient>?

Defined in: dotnet/src/EliteDangerousAlmanac/Equipment/PersonalUpgradeCosts.cs:34

What one step of a suit's ladder costs.

Parameters

family

string?

The suit family, such as utilitysuit.

targetGrade

int

The grade the step reaches, from two through five.

Returns

IReadOnlyList<PersonalEngineeringIngredient>?

The materials the step asks for, or null where no suit carries the family, or the suit climbs no ladder.

Exceptions

ArgumentOutOfRangeException

The target grade is not a whole number from two through five.

Weapon()

static Weapon(symbol, targetGrade, currentGrade?): IReadOnlyList<PersonalEngineeringIngredient>?

Defined in: dotnet/src/EliteDangerousAlmanac/Equipment/PersonalUpgradeCosts.cs:99

What climbing a weapon from one grade to another costs altogether.

Parameters

symbol

string?

The weapon's item symbol.

targetGrade

int

The grade to reach, from one through five.

currentGrade

int = EquipmentGrades.Lowest

The grade owned now, from one through five.

Returns

IReadOnlyList<PersonalEngineeringIngredient>?

The materials every step between the two grades asks for, added together, or null for a symbol no weapon carries. A target at or below the grade owned now costs nothing and answers an empty list.

Exceptions

ArgumentOutOfRangeException

Either grade is not one through five.

WeaponStep()

static WeaponStep(symbol, targetGrade): IReadOnlyList<PersonalEngineeringIngredient>?

Defined in: dotnet/src/EliteDangerousAlmanac/Equipment/PersonalUpgradeCosts.cs:78

What one step of a weapon's ladder costs.

Parameters

symbol

string?

The weapon's item symbol.

targetGrade

int

The grade the step reaches, from two through five.

Returns

IReadOnlyList<PersonalEngineeringIngredient>?

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

Exceptions

ArgumentOutOfRangeException

The target grade is not a whole number from two through five.

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