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

CheckMove() private static method

private static CheckMove ( Mobile m, SkillName other ) : bool
m Mobile
other SkillName
return bool
		private static bool CheckMove( Mobile m, SkillName other )
		{
			double wresValue = m.Skills[SkillName.Wrestling].Value;
			double scndValue = m.Skills[other].Value;

			/* 40% chance at 80, 80
			 * 50% chance at 100, 100
			 * 60% chance at 120, 120
			 */

			double chance = (wresValue + scndValue) / 400.0;

			return ( chance >= Utility.RandomDouble() );
		}