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

Mobile_HitsRegenRate() private static méthode

private static Mobile_HitsRegenRate ( Server.Mobile from ) : System.TimeSpan
from Server.Mobile
Résultat System.TimeSpan
		private static TimeSpan Mobile_HitsRegenRate( Mobile from )
		{
			int points = 0;

			if ( from is BaseCreature && !((BaseCreature)from).IsAnimatedDead )
				points += 4;

			if ( (from is BaseCreature && ((BaseCreature)from).IsParagon) )
				points += 40;

			if ( points < 0 )
				points = 0;

			return TimeSpan.FromSeconds( 1.0 / (0.1 * (1 + points)) );
		}