Server.Misc.RegenRates.CheckBonusSkill C# (CSharp) Méthode

CheckBonusSkill() private static méthode

private static CheckBonusSkill ( Server.Mobile m, int cur, int max, SkillName skill ) : void
m Server.Mobile
cur int
max int
skill SkillName
Résultat void
		private static void CheckBonusSkill( Mobile m, int cur, int max, SkillName skill )
		{
			if ( !m.Alive )
				return;

			double n = (double)cur / max;
			double v = Math.Sqrt( m.Skills[skill].Value * 0.005 );

			n *= (1.0 - v);
			n += v;

			m.CheckSkill( skill, n );
		}