C# 클래스 ZTn.BNet.D3.Calculator.Helpers.ItemExtension

Extension class to be used with Item objects
파일 보기 프로젝트 열기: zetoken/D3-API-by-ZTn

공개 메소드들

메소드 설명
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