Server.Misc.WeightOverloading.GetStamLoss C# (CSharp) Méthode

GetStamLoss() public static méthode

public static GetStamLoss ( Mobile from, int overWeight, bool running ) : int
from Mobile
overWeight int
running bool
Résultat int
		public static int GetStamLoss( Mobile from, int overWeight, bool running )
		{
			int loss = 5 + (overWeight / 25);

			if ( from.Mounted )
				loss /= 3;

			if ( running )
				loss *= 2;

			return loss;
		}