Server.Items.SweetDough.InternalTarget.OnTarget C# (CSharp) Method

OnTarget() protected method

protected OnTarget ( Mobile from, object targeted ) : void
from Mobile
targeted object
return void
			protected override void OnTarget( Mobile from, object targeted )
			{
				if ( m_Item.Deleted ) return;

				if ( targeted is BowlFlour )
				{
					m_Item.Delete();
					((BowlFlour)targeted).Delete();

					from.AddToBackpack( new CakeMix() );
				}
				else if ( targeted is Campfire )
				{
					from.PlaySound( 0x225 );
					m_Item.Delete();
					InternalTimer t = new InternalTimer( from, (Campfire)targeted );
					t.Start();
				}
			}
			
SweetDough.InternalTarget