C# Класс Ensage.Common.Extensions.Damage.Calculations

The calculations.
Показать файл Открыть проект

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

Метод Описание
DamageTaken ( this target, float dmg, DamageType dmgType, Unit source, bool throughBKB = false, double minusArmor = 0d, double minusDamageResistancePerc = 0d, double minusMagicResistancePerc = 0d ) : float

Returns actual damage the unit takes

Init ( ) : void

The init.

SpellDamageTaken ( this target, float dmg, DamageType dmgType, Unit source, string spellName, bool throughBKB = false, double minusArmor = 0d, double minusDamageResistancePerc = 0d, double minusMagicResistancePerc = 0d ) : float

The spell damage taken.

Приватные методы

Метод Описание
Calculations ( ) : System

Initializes static members of the Calculations class.

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

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

Returns actual damage the unit takes
public static DamageTaken ( this target, float dmg, DamageType dmgType, Unit source, bool throughBKB = false, double minusArmor = 0d, double minusDamageResistancePerc = 0d, double minusMagicResistancePerc = 0d ) : float
target this /// damaged unit ///
dmg float /// amount of damage ///
dmgType DamageType /// Type of damage (Magical/Physical/Pure/Health removal) ///
source Unit /// source of the damage ///
throughBKB bool /// true if the damage pierces magic immunity ///
minusArmor double /// The minus Armor. ///
minusDamageResistancePerc double /// The minus Damage Resistance Perc. ///
minusMagicResistancePerc double /// The minus Magic Resistance Perc. ///
Результат float

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

The init.
public static Init ( ) : void
Результат void

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

The spell damage taken.
public static SpellDamageTaken ( this target, float dmg, DamageType dmgType, Unit source, string spellName, bool throughBKB = false, double minusArmor = 0d, double minusDamageResistancePerc = 0d, double minusMagicResistancePerc = 0d ) : float
target this /// The target. ///
dmg float /// The dmg. ///
dmgType DamageType /// The dmg type. ///
source Unit /// The source. ///
spellName string /// The spell name. ///
throughBKB bool /// The through bkb. ///
minusArmor double /// The minus armor. ///
minusDamageResistancePerc double /// The minus damage resistance perc. ///
minusMagicResistancePerc double /// The minus magic resistance perc. ///
Результат float