Example #1
0
 public long DamagePercent(int skillId)
 {
     if (_playerDealtUnrelieable)
     {
         throw new Exception("Player Dealt unrelieable");
     }
     return(SkillsData.Amount(_playerDamageDealt.Source.User, _target, skillId, _timed, Type) * 100 / Amount());
 }
Example #2
0
        public long Amount()
        {
            var result = from skill in Skills
                         from source in skill.Value
                         select SkillsData.Amount(source, _target, skill.Key.Id, _timed, Type);

            return(result.Sum());
        }
Example #3
0
        public long Amount(int skillId)
        {
            var result = from skill in Skills
                         where skill.Key.Id == skillId
                         from source in skill.Value
                         select SkillsData.Amount(source, _target, skillId, _timed, skill.Key.NpcInfo, Type);

            return(result.Sum());
        }