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)); }
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)); }