C# Class Ensage.Common.Extensions.Damage.Calculations

The calculations.
Datei anzeigen Open project: EnsageSharp/Ensage.Common

Public Methods

Method Description
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.

Private Methods

Method Description
Calculations ( ) : System

Initializes static members of the Calculations class.

Method Details

DamageTaken() public static method

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. ///
return float

Init() public static method

The init.
public static Init ( ) : void
return void

SpellDamageTaken() public static method

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. ///
return float