C# Class Aura.Channel.Skills.SkillHelper

显示文件 Open project: aura-project/aura

Public Methods

Method 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 method

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
return void

HandleDefenseProtection() public static method

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
return void

HandleInjury() public static method

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
return void

HandleMagicDefenseProtection() public static method

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
return void

UpdateWeapon() public static method

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
return void