C# Класс Aura.Channel.Skills.SkillHelper

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

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

Метод Описание
HandleConditions ( Creature attacker, Creature target, float &damage ) : void

Modified damage based on active conditions.

HandleDefenseProtection ( Creature target, float &damage, bool defense = true, bool protection = true ) : void

Reduces damage by target's defense and protection.

HandleInjury ( Creature attacker, Creature target, float damage ) : void

Inflicts injuries to target, based on attacker's Injury properties and the given damage.

HandleMagicDefenseProtection ( Creature target, float &damage, bool defense = true, bool protection = true ) : void

Reduces damage by target's magic defense and protection.

UpdateWeapon ( Creature attacker, Creature target, ProficiencyGainType profGainType ) : void

Reduces weapon's durability and increases its proficiency. Only updates weapon type items that are not null.

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

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

Modified damage based on active conditions.
public static HandleConditions ( Creature attacker, Creature target, float &damage ) : void
attacker Aura.Channel.World.Entities.Creature
target Aura.Channel.World.Entities.Creature
damage float
Результат void

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

Reduces damage by target's defense and protection.
public static HandleDefenseProtection ( Creature target, float &damage, bool defense = true, bool protection = true ) : void
target Aura.Channel.World.Entities.Creature
damage float
defense bool
protection bool
Результат void

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

Inflicts injuries to target, based on attacker's Injury properties and the given damage.
public static HandleInjury ( Creature attacker, Creature target, float damage ) : void
attacker Aura.Channel.World.Entities.Creature
target Aura.Channel.World.Entities.Creature
damage float
Результат void

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

Reduces damage by target's magic defense and protection.
public static HandleMagicDefenseProtection ( Creature target, float &damage, bool defense = true, bool protection = true ) : void
target Aura.Channel.World.Entities.Creature
damage float
defense bool
protection bool
Результат void

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

Reduces weapon's durability and increases its proficiency. Only updates weapon type items that are not null.
public static UpdateWeapon ( Creature attacker, Creature target, ProficiencyGainType profGainType ) : void
attacker Aura.Channel.World.Entities.Creature Creature who's weapon is updated.
target Aura.Channel.World.Entities.Creature /// The target of the skill, used for power rating calculations. /// If target is null, prof will be rewarded regardless of target. ///
profGainType ProficiencyGainType
Результат void