Ejemplo n.º 1
0
 public static KeyValuePair <DamageElement, MinMaxFloat> GetDamageAmount(this Skill skill, short level, ICharacterData character)
 {
     if (!skill.IsAttack() || skill.skillAttackType != SkillAttackType.Normal)
     {
         return(new KeyValuePair <DamageElement, MinMaxFloat>());
     }
     return(GameDataHelpers.MakeDamage(skill.damageAmount, level, 1f, skill.GetEffectivenessDamage(character)));
 }
Ejemplo n.º 2
0
 public static KeyValuePair <DamageElement, MinMaxFloat> GetDamageAmount(this Item weaponItem, short level, float rate, ICharacterData character)
 {
     if (weaponItem == null ||
         !weaponItem.IsWeapon())
     {
         return(new KeyValuePair <DamageElement, MinMaxFloat>());
     }
     return(GameDataHelpers.MakeDamage(weaponItem.damageAmount, level, rate, weaponItem.GetEffectivenessDamage(character)));
 }