/// <summary> /// Gets the attack bonus provided by this <see cref="Gauntlets" /> for <see cref="MobileEntity" />. /// </summary> /// <remarks> /// Attack bonus provided by gloves is dependent on hand skill, hindrance, and <see cref="Penetration"/>. /// </remarks> public virtual double GetAttackBonus(MobileEntity attacker, MobileEntity defender) { var attackBonus = BaseAttackBonus + (double)Penetration; var skillLevel = attacker.GetSkillLevel(Skill.Hand); var hindrance = attacker.CalculateHindrance(); var hindrancePenalty = (hindrance.Total * skillLevel) * 0.25; return(attackBonus - hindrancePenalty); }