Server.Items.Food.Eat C# (CSharp) Méthode

Eat() public méthode

public Eat ( Mobile from ) : bool
from Mobile
Résultat bool
		public virtual bool Eat( Mobile from )
		{
			// Fill the Mobile with FillFactor
			if ( CheckHunger( from ) )
			{
				// Play a random "eat" sound
				from.PlaySound( Utility.Random( 0x3A, 3 ) );

				if ( from.Body.IsHuman && !from.Mounted )
					from.Animate( 34, 5, 1, true, false, 0 );

				if ( m_Poison != null )
					from.ApplyPoison( m_Poisoner, m_Poison );

				Consume();

				return true;
			}

			return false;
		}