C# Class Aura.Channel.Skills.SkillHelper

Afficher le fichier Open project: aura-project/aura

Méthodes publiques

Méthode Description
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.

Method Details

HandleConditions() public static méthode

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
Résultat void

HandleDefenseProtection() public static méthode

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
Résultat void

HandleInjury() public static méthode

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
Résultat void

HandleMagicDefenseProtection() public static méthode

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
Résultat void

UpdateWeapon() public static méthode

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
Résultat void