Server.Misc.SkillCheck.CanLower C# (CSharp) Méthode

CanLower() public static méthode

public static CanLower ( Server.Mobile from, Stat stat ) : bool
from Server.Mobile
stat Stat
Résultat bool
		public static bool CanLower( Mobile from, Stat stat )
		{
			switch ( stat )
			{
				case Stat.Str: return ( from.StrLock == StatLockType.Down && from.RawStr > 10 );
				case Stat.Dex: return ( from.DexLock == StatLockType.Down && from.RawDex > 10 );
				case Stat.Int: return ( from.IntLock == StatLockType.Down && from.RawInt > 10 );
			}

			return false;
		}