예제 #1
0
        public static float SkillDamagePercent(this ACDItem item, SNOPower power)
        {
            var key = new AttributeKey((int)ActorAttributeType.PowerDamagePercentBonus, (int)power);

            return(item.GetAttribute <float>(key.BaseAttribute, key.ModifierId));
        }
예제 #2
0
        public static int GetElementalDamage(this ACDItem item, DamageType damageType)
        {
            var key = new AttributeKey((int)ActorAttributeType.DamageDealtPercentBonus, (int)damageType);

            return((int)Math.Round(item.GetAttribute <float>(key.BaseAttribute, key.ModifierId) * 100, MidpointRounding.AwayFromZero));
        }