Ejemplo n.º 1
0
        private static float GetModifiedDamage(Unit unit, float dmg)
        {
            float psysicalDamageBonus =
                CharacterFormulas.CalculatePsysicalDamageBonus(unit.Level, unit.Asda2Agility, unit.Asda2Strength,
                                                               unit.Class);

            return(UnitUpdates.GetMultiMod(unit.FloatMods[10], dmg + (float)unit.IntMods[25] + psysicalDamageBonus));
        }
Ejemplo n.º 2
0
        static float GetModifiedDamage(Unit unit, float dmg)
        {
            var statsBonus = CharacterFormulas.CalculatePsysicalDamageBonus(unit.Level, unit.Asda2Agility, unit.Asda2Strength, unit.Class);

            return(GetMultiMod(unit.FloatMods[(int)StatModifierFloat.Damage], dmg + unit.IntMods[(int)StatModifierInt.Damage] + statsBonus));
        }