Server.Items.BaseStrengthPotion.DoStrength C# (CSharp) Méthode

DoStrength() public méthode

public DoStrength ( Mobile from ) : bool
from Mobile
Résultat bool
		public bool DoStrength( Mobile from )
		{
			// TODO: Verify scaled; is it offset, duration, or both?
			if ( Spells.SpellHelper.AddStatOffset( from, StatType.Str, StrOffset ) )
			{
				from.FixedEffect( 0x375A, 10, 15 );
				from.PlaySound( 0x1E7 );
				return true;
			}

			from.SendLocalizedMessage( 502173 ); // You are already under a similar effect.
			return false;
		}