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

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

공개 메소드들

메소드 설명
CheckAndUpdateWeaponDelta ( this itemAttr ) : ZTn.BNet.D3.Items.ItemAttributes

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

CheckAndUpdateWeaponDelta ( this itemAttr, String resist ) : ZTn.BNet.D3.Items.ItemAttributes

Check a specific case of "invalid" Weapon damage values (based on a specific resist): If bonus min > delta, then delta should be replaced by bonus min + 1

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

Computes armor brought by an item.

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

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

GetBaseWeaponDamageMax ( this weaponAttr, String resist ) : ZTn.BNet.D3.Items.ItemValueRange

Computes max damage of the weapon without taking account of "+% weapon damage".

GetBaseWeaponDamageMin ( this itemAttr, String resist ) : ZTn.BNet.D3.Items.ItemValueRange

Computes min damage of the weapon without taking account of "+% weapon damage".

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

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

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

Computes weapon only damages

GetRawBonusDamageMax ( this itemAttr ) : ZTn.BNet.D3.Items.ItemValueRange

Computes max damage of the item.

GetRawBonusDamageMax ( this itemAttr, String resist, bool useDamageTypePercentBonus = true ) : ZTn.BNet.D3.Items.ItemValueRange

Computes max damage of the item (based on a specific resist).

GetRawBonusDamageMin ( this itemAttr ) : ZTn.BNet.D3.Items.ItemValueRange

Computes min damage of the item.

GetRawBonusDamageMin ( this itemAttr, String resist, bool useDamageTypePercentBonus = true ) : ZTn.BNet.D3.Items.ItemValueRange

Computes min damage of the item (based on a specific resist).

GetRawWeaponAttackPerSecond ( this itemAttr ) : ZTn.BNet.D3.Items.ItemValueRange

Computes weapon attack speed (attack per second).

GetRawWeaponDamageMax ( this weaponAttr ) : ZTn.BNet.D3.Items.ItemValueRange

Computes max damage of the weapon.

GetRawWeaponDamageMax ( this weaponAttr, String resist, bool useDamageTypePercentBonus = true ) : ZTn.BNet.D3.Items.ItemValueRange

Computes max damage of the weapon (based on a specific resist).

GetRawWeaponDamageMin ( this weaponAttr ) : ZTn.BNet.D3.Items.ItemValueRange

Computes min damage of the weapon.

GetRawWeaponDamageMin ( this weaponAttr, String resist, bool useDamageTypePercentBonus = true ) : ZTn.BNet.D3.Items.ItemValueRange

Computes min damage of the weapon (based on a specific resist).

GetRawWeaponDps ( this itemAttr ) : ZTn.BNet.D3.Items.ItemValueRange

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

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

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

GetSimplified ( this itemAttr ) : ZTn.BNet.D3.Items.ItemAttributes

Returns a new ItemAttributes by aggregating some raw attributes of itemAttr (for easier editing for example).

GetWeaponAttackPerSecond ( this weaponAttr, ZTn.BNet.D3.Items.ItemValueRange increaseFromOtherItems ) : ZTn.BNet.D3.Items.ItemValueRange

Computes weapon attack speed.

IsAncient ( this itemAttr ) : bool

Informs if the item is ancient based on its attributes.

IsJewel ( this itemAttr ) : bool

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

IsWeapon ( this itemAttr ) : bool

Informs if the item is a weapon based on its attributes

SetAttributeByName ( this itemAttributes, string fieldName, ZTn.BNet.D3.Items.ItemValueRange value ) : ZTn.BNet.D3.Items.ItemAttributes

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

메소드 상세

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 itemAttr ) : ZTn.BNet.D3.Items.ItemAttributes
itemAttr this
리턴 ZTn.BNet.D3.Items.ItemAttributes

CheckAndUpdateWeaponDelta() 공개 정적인 메소드

Check a specific case of "invalid" Weapon damage values (based on a specific resist): If bonus min > delta, then delta should be replaced by bonus min + 1
public static CheckAndUpdateWeaponDelta ( this itemAttr, String resist ) : ZTn.BNet.D3.Items.ItemAttributes
itemAttr this
resist String
리턴 ZTn.BNet.D3.Items.ItemAttributes

GetArmor() 공개 정적인 메소드

Computes armor brought by an item.
public static GetArmor ( this itemAttr ) : ZTn.BNet.D3.Items.ItemValueRange
itemAttr this Attributes of an item.
리턴 ZTn.BNet.D3.Items.ItemValueRange

GetAttributeByName() 공개 정적인 메소드

Returns the value of an attribute of an item given the attribute's name
public static GetAttributeByName ( this itemAttributes, String fieldName ) : ZTn.BNet.D3.Items.ItemValueRange
itemAttributes this Source attributes
fieldName String Name of the attribute to retrieve
리턴 ZTn.BNet.D3.Items.ItemValueRange

GetBaseWeaponDamageMax() 공개 정적인 메소드

Computes max damage of the weapon without taking account of "+% weapon damage".
public static GetBaseWeaponDamageMax ( this weaponAttr, String resist ) : ZTn.BNet.D3.Items.ItemValueRange
weaponAttr this Attributes of a weapon.
resist String
리턴 ZTn.BNet.D3.Items.ItemValueRange

GetBaseWeaponDamageMin() 공개 정적인 메소드

Computes min damage of the weapon without taking account of "+% weapon damage".
public static GetBaseWeaponDamageMin ( this itemAttr, String resist ) : ZTn.BNet.D3.Items.ItemValueRange
itemAttr this Attributes of a weapon.
resist String
리턴 ZTn.BNet.D3.Items.ItemValueRange

GetRawAverageBonusDamage() 공개 정적인 메소드

Computes damages other than weapon damages (on rings, amulets, ...).
public static GetRawAverageBonusDamage ( this itemAttr ) : ZTn.BNet.D3.Items.ItemValueRange
itemAttr this Attributes of an item.
리턴 ZTn.BNet.D3.Items.ItemValueRange

GetRawAverageWeaponDamage() 공개 정적인 메소드

Computes weapon only damages
public static GetRawAverageWeaponDamage ( this itemAttr ) : ZTn.BNet.D3.Items.ItemValueRange
itemAttr this
리턴 ZTn.BNet.D3.Items.ItemValueRange

GetRawBonusDamageMax() 공개 정적인 메소드

Computes max damage of the item.
public static GetRawBonusDamageMax ( this itemAttr ) : ZTn.BNet.D3.Items.ItemValueRange
itemAttr this Attributes of an item.
리턴 ZTn.BNet.D3.Items.ItemValueRange

GetRawBonusDamageMax() 공개 정적인 메소드

Computes max damage of the item (based on a specific resist).
public static GetRawBonusDamageMax ( this itemAttr, String resist, bool useDamageTypePercentBonus = true ) : ZTn.BNet.D3.Items.ItemValueRange
itemAttr this Attributes of an item.
resist String Name of the resist.
useDamageTypePercentBonus bool
리턴 ZTn.BNet.D3.Items.ItemValueRange

GetRawBonusDamageMin() 공개 정적인 메소드

Computes min damage of the item.
public static GetRawBonusDamageMin ( this itemAttr ) : ZTn.BNet.D3.Items.ItemValueRange
itemAttr this Attributes of an item.
리턴 ZTn.BNet.D3.Items.ItemValueRange

GetRawBonusDamageMin() 공개 정적인 메소드

Computes min damage of the item (based on a specific resist).
public static GetRawBonusDamageMin ( this itemAttr, String resist, bool useDamageTypePercentBonus = true ) : ZTn.BNet.D3.Items.ItemValueRange
itemAttr this Attributes of an item.
resist String Name of the resist.
useDamageTypePercentBonus bool
리턴 ZTn.BNet.D3.Items.ItemValueRange

GetRawWeaponAttackPerSecond() 공개 정적인 메소드

Computes weapon attack speed (attack per second).
public static GetRawWeaponAttackPerSecond ( this itemAttr ) : ZTn.BNet.D3.Items.ItemValueRange
itemAttr this
리턴 ZTn.BNet.D3.Items.ItemValueRange

GetRawWeaponDamageMax() 공개 정적인 메소드

Computes max damage of the weapon.
public static GetRawWeaponDamageMax ( this weaponAttr ) : ZTn.BNet.D3.Items.ItemValueRange
weaponAttr this Attributes of a weapon.
리턴 ZTn.BNet.D3.Items.ItemValueRange

GetRawWeaponDamageMax() 공개 정적인 메소드

Computes max damage of the weapon (based on a specific resist).
public static GetRawWeaponDamageMax ( this weaponAttr, String resist, bool useDamageTypePercentBonus = true ) : ZTn.BNet.D3.Items.ItemValueRange
weaponAttr this Attributes of a weapon.
resist String Name of the resist.
useDamageTypePercentBonus bool
리턴 ZTn.BNet.D3.Items.ItemValueRange

GetRawWeaponDamageMin() 공개 정적인 메소드

Computes min damage of the weapon.
public static GetRawWeaponDamageMin ( this weaponAttr ) : ZTn.BNet.D3.Items.ItemValueRange
weaponAttr this Attributes of a weapon.
리턴 ZTn.BNet.D3.Items.ItemValueRange

GetRawWeaponDamageMin() 공개 정적인 메소드

Computes min damage of the weapon (based on a specific resist).
public static GetRawWeaponDamageMin ( this weaponAttr, String resist, bool useDamageTypePercentBonus = true ) : ZTn.BNet.D3.Items.ItemValueRange
weaponAttr this Attributes of a weapon.
resist String Name of the resist.
useDamageTypePercentBonus bool
리턴 ZTn.BNet.D3.Items.ItemValueRange

GetRawWeaponDps() 공개 정적인 메소드

Computes raw weapon dps ie before all multipliers ( = average damage * attack per second )
public static GetRawWeaponDps ( this itemAttr ) : ZTn.BNet.D3.Items.ItemValueRange
itemAttr this
리턴 ZTn.BNet.D3.Items.ItemValueRange

GetResistance() 공개 정적인 메소드

Returns the resistance value given by the gems for the given resist
public static GetResistance ( this itemAttr, String resist ) : ZTn.BNet.D3.Items.ItemValueRange
itemAttr this
resist String
리턴 ZTn.BNet.D3.Items.ItemValueRange

GetSimplified() 공개 정적인 메소드

Returns a new ItemAttributes by aggregating some raw attributes of itemAttr (for easier editing for example).
public static GetSimplified ( this itemAttr ) : ZTn.BNet.D3.Items.ItemAttributes
itemAttr this
리턴 ZTn.BNet.D3.Items.ItemAttributes

GetWeaponAttackPerSecond() 공개 정적인 메소드

Computes weapon attack speed.
public static GetWeaponAttackPerSecond ( this weaponAttr, ZTn.BNet.D3.Items.ItemValueRange increaseFromOtherItems ) : ZTn.BNet.D3.Items.ItemValueRange
weaponAttr this Attributes of used weapon.
increaseFromOtherItems ZTn.BNet.D3.Items.ItemValueRange Increase Attack Speed from items other than the weapon.
리턴 ZTn.BNet.D3.Items.ItemValueRange

IsAncient() 공개 정적인 메소드

Informs if the item is ancient based on its attributes.
public static IsAncient ( this itemAttr ) : bool
itemAttr this Attributes of the item.
리턴 bool

IsJewel() 공개 정적인 메소드

Informs if the item is a legendary jewel based on its attributes.
public static IsJewel ( this itemAttr ) : bool
itemAttr this Attributes of the item.
리턴 bool

IsWeapon() 공개 정적인 메소드

Informs if the item is a weapon based on its attributes
public static IsWeapon ( this itemAttr ) : bool
itemAttr this Attributes of the item.
리턴 bool

SetAttributeByName() 공개 정적인 메소드

Sets the value of an attribute of an ItemAttributes given the attribute's name
public static SetAttributeByName ( this itemAttributes, string fieldName, ZTn.BNet.D3.Items.ItemValueRange value ) : ZTn.BNet.D3.Items.ItemAttributes
itemAttributes this Source attributes
fieldName string Name of the attribute to retrieve
value ZTn.BNet.D3.Items.ItemValueRange Value to set
리턴 ZTn.BNet.D3.Items.ItemAttributes