Server.Items.Fists.GetDefendSkillValue C# (CSharp) Method

GetDefendSkillValue() public method

public GetDefendSkillValue ( Mobile attacker, Mobile defender ) : double
attacker Mobile
defender Mobile
return double
		public override double GetDefendSkillValue( Mobile attacker, Mobile defender )
		{
			double wresValue = defender.Skills[SkillName.Wrestling].Value;
			double anatValue = defender.Skills[SkillName.Anatomy].Value;
			double evalValue = defender.Skills[SkillName.EvalInt].Value;
			double incrValue = (anatValue + evalValue + 20.0) * 0.5;

			if ( incrValue > 120.0 )
				incrValue = 120.0;

			if ( wresValue > incrValue )
				return wresValue;
			else
				return incrValue;
		}