C# Класс ZTn.BNet.D3.Calculator.Helpers.ItemExtension

Extension class to be used with Item objects
Показать файл Открыть проект

Открытые методы

Метод Описание
CheckAndUpdateWeaponDelta ( this item ) : Item

Check a specific case of "invalid" weapon damage values: If bonus min > delta, then delta should be replaced by bonus min + 1

GetActivatedSetBonus ( this items ) : ZTn.BNet.D3.Items.ItemAttributes

Computes the ItemAttributes brought by the set bonuses.

GetActivatedSets ( this items ) : List

Computes the list of Set actually worn.

GetArmor ( this item ) : ZTn.BNet.D3.Items.ItemValueRange

Computes armor brought by the item

GetAttributeByName ( this item, String fieldName ) : ZTn.BNet.D3.Items.ItemValueRange

Returns the value of an attribute of an item given the attribute's name

GetRawAverageBonusDamage ( this item ) : ZTn.BNet.D3.Items.ItemValueRange

Computes damages other than weapon damages (on rings, amulets, ...)

GetRawAverageWeaponDamage ( this item ) : ZTn.BNet.D3.Items.ItemValueRange

Computes weapon only damages

GetRawBonusDamageMax ( this item ) : ZTn.BNet.D3.Items.ItemValueRange
GetRawBonusDamageMin ( this item ) : ZTn.BNet.D3.Items.ItemValueRange
GetRawWeaponAttackPerSecond ( this item ) : ZTn.BNet.D3.Items.ItemValueRange

Computes weapon attack speed (attack per second).

GetRawWeaponDamageMax ( this item ) : ZTn.BNet.D3.Items.ItemValueRange
GetRawWeaponDamageMin ( this item ) : ZTn.BNet.D3.Items.ItemValueRange
GetRawWeaponDps ( this item ) : ZTn.BNet.D3.Items.ItemValueRange

Computes raw weapon dps ie before all multipliers ( = average damage * attack per second )

GetResistance ( this item, String resist ) : ZTn.BNet.D3.Items.ItemValueRange

Returns the resistance value given by the gems for the given resist

GetWeaponAttackPerSecond ( this item, ZTn.BNet.D3.Items.ItemValueRange increaseFromOtherItems ) : ZTn.BNet.D3.Items.ItemValueRange
IsAncient ( this item ) : bool

Informs if the item is ancient based on its attributes.

IsItemTypeHelm ( this item ) : System.Boolean
IsItemTypeOther ( this item ) : System.Boolean
IsItemTypeWeapon ( this item ) : System.Boolean
IsJewel ( this item ) : bool

Informs if the item is a legendary jewel based on its attributes.

IsWeapon ( this item ) : bool

Informs if the item is a weapon based on its characteristics

MergeSocketedGems ( this item ) : Item

Merge socketed gems in the item.

SetAttributeByName ( this item, String fieldName, ZTn.BNet.D3.Items.ItemValueRange value ) : Item

Sets the value of an attribute of an item given the attribute's name

Simplify ( this item ) : Item

Simplifies the item by aggregating some raw attributes (for easier editing for example).

UpdateStats ( this item ) : Item

Updates some general item stats based on its attributesRaw.

Описание методов

CheckAndUpdateWeaponDelta() публичный статический Метод

Check a specific case of "invalid" weapon damage values: If bonus min > delta, then delta should be replaced by bonus min + 1
public static CheckAndUpdateWeaponDelta ( this item ) : Item
item this
Результат Item

GetActivatedSetBonus() публичный статический Метод

Computes the ItemAttributes brought by the set bonuses.
public static GetActivatedSetBonus ( this items ) : ZTn.BNet.D3.Items.ItemAttributes
items this
Результат ZTn.BNet.D3.Items.ItemAttributes

GetActivatedSets() публичный статический Метод

Computes the list of Set actually worn.
public static GetActivatedSets ( this items ) : List
items this
Результат List

GetArmor() публичный статический Метод

Computes armor brought by the item
public static GetArmor ( this item ) : ZTn.BNet.D3.Items.ItemValueRange
item this
Результат ZTn.BNet.D3.Items.ItemValueRange

GetAttributeByName() публичный статический Метод

Returns the value of an attribute of an item given the attribute's name
public static GetAttributeByName ( this item, String fieldName ) : ZTn.BNet.D3.Items.ItemValueRange
item this Source item
fieldName String Name of the attribute to retrieve
Результат ZTn.BNet.D3.Items.ItemValueRange

GetRawAverageBonusDamage() публичный статический Метод

Computes damages other than weapon damages (on rings, amulets, ...)
public static GetRawAverageBonusDamage ( this item ) : ZTn.BNet.D3.Items.ItemValueRange
item this
Результат ZTn.BNet.D3.Items.ItemValueRange

GetRawAverageWeaponDamage() публичный статический Метод

Computes weapon only damages
public static GetRawAverageWeaponDamage ( this item ) : ZTn.BNet.D3.Items.ItemValueRange
item this
Результат ZTn.BNet.D3.Items.ItemValueRange

GetRawBonusDamageMax() публичный статический Метод

public static GetRawBonusDamageMax ( this item ) : ZTn.BNet.D3.Items.ItemValueRange
item this
Результат ZTn.BNet.D3.Items.ItemValueRange

GetRawBonusDamageMin() публичный статический Метод

public static GetRawBonusDamageMin ( this item ) : ZTn.BNet.D3.Items.ItemValueRange
item this
Результат ZTn.BNet.D3.Items.ItemValueRange

GetRawWeaponAttackPerSecond() публичный статический Метод

Computes weapon attack speed (attack per second).
public static GetRawWeaponAttackPerSecond ( this item ) : ZTn.BNet.D3.Items.ItemValueRange
item this
Результат ZTn.BNet.D3.Items.ItemValueRange

GetRawWeaponDamageMax() публичный статический Метод

public static GetRawWeaponDamageMax ( this item ) : ZTn.BNet.D3.Items.ItemValueRange
item this
Результат ZTn.BNet.D3.Items.ItemValueRange

GetRawWeaponDamageMin() публичный статический Метод

public static GetRawWeaponDamageMin ( this item ) : ZTn.BNet.D3.Items.ItemValueRange
item this
Результат ZTn.BNet.D3.Items.ItemValueRange

GetRawWeaponDps() публичный статический Метод

Computes raw weapon dps ie before all multipliers ( = average damage * attack per second )
public static GetRawWeaponDps ( this item ) : ZTn.BNet.D3.Items.ItemValueRange
item this
Результат ZTn.BNet.D3.Items.ItemValueRange

GetResistance() публичный статический Метод

Returns the resistance value given by the gems for the given resist
public static GetResistance ( this item, String resist ) : ZTn.BNet.D3.Items.ItemValueRange
item this
resist String
Результат ZTn.BNet.D3.Items.ItemValueRange

GetWeaponAttackPerSecond() публичный статический Метод

public static GetWeaponAttackPerSecond ( this item, ZTn.BNet.D3.Items.ItemValueRange increaseFromOtherItems ) : ZTn.BNet.D3.Items.ItemValueRange
item this
increaseFromOtherItems ZTn.BNet.D3.Items.ItemValueRange
Результат ZTn.BNet.D3.Items.ItemValueRange

IsAncient() публичный статический Метод

Informs if the item is ancient based on its attributes.
public static IsAncient ( this item ) : bool
item this
Результат bool

IsItemTypeHelm() публичный статический Метод

public static IsItemTypeHelm ( this item ) : System.Boolean
item this
Результат System.Boolean

IsItemTypeOther() публичный статический Метод

public static IsItemTypeOther ( this item ) : System.Boolean
item this
Результат System.Boolean

IsItemTypeWeapon() публичный статический Метод

public static IsItemTypeWeapon ( this item ) : System.Boolean
item this
Результат System.Boolean

IsJewel() публичный статический Метод

Informs if the item is a legendary jewel based on its attributes.
public static IsJewel ( this item ) : bool
item this
Результат bool

IsWeapon() публичный статический Метод

Informs if the item is a weapon based on its characteristics
public static IsWeapon ( this item ) : bool
item this
Результат bool

MergeSocketedGems() публичный статический Метод

Merge socketed gems in the item.
public static MergeSocketedGems ( this item ) : Item
item this
Результат Item

SetAttributeByName() публичный статический Метод

Sets the value of an attribute of an item given the attribute's name
public static SetAttributeByName ( this item, String fieldName, ZTn.BNet.D3.Items.ItemValueRange value ) : Item
item this Source item
fieldName String Name of the attribute to retrieve
value ZTn.BNet.D3.Items.ItemValueRange Value to set
Результат Item

Simplify() публичный статический Метод

Simplifies the item by aggregating some raw attributes (for easier editing for example).
public static Simplify ( this item ) : Item
item this
Результат Item

UpdateStats() публичный статический Метод

Updates some general item stats based on its attributesRaw.
public static UpdateStats ( this item ) : Item
item this
Результат Item