Exemplo n.º 1
0
        public DamageSkillStat CalculateHitData(Interfaces.IClassDefinition classInfo)
        {
            this.Cost    = 0;
            this.CD      = 0;
            this.Charges = 0;

            var data     = SpellCalculator.CalculateHitData(classInfo);
            var selected = new DamageSkillStat(data.From, data.To, this.Tier, this.Cost, this.CD, this.Charges);

            selected.Level = this.Level;
            return(selected);
        }
Exemplo n.º 2
0
        public DamageSkillStat CalculateSkillPower(int level)
        {
            var data = SpellCalculator.CalculateSkillDamageLevels(this).FirstOrDefault(x => x.Level == level);

            this.From = data.From;
            this.To   = data.To;

            var selected = new DamageSkillStat(this.From, this.To, this.Tier, this.Cost, this.CD, this.Charges);

            selected.Level = level;
            return(selected);
        }