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

Mobile_StamRegenRate() private static méthode

private static Mobile_StamRegenRate ( Server.Mobile from ) : System.TimeSpan
from Server.Mobile
Résultat System.TimeSpan
		private static TimeSpan Mobile_StamRegenRate( Mobile from )
		{
			if ( from.Skills == null )
				return Mobile.DefaultStamRate;

			int points = 0;

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

			if ( points < -1 )
				points = -1;

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