Server.Items.BaseEquipableLight.Ignite C# (CSharp) Méthode

Ignite() public méthode

public Ignite ( ) : void
Résultat void
		public override void Ignite()
		{
			if ( !(Parent is Mobile) && RootParent is Mobile )
			{
				Mobile holder = (Mobile)RootParent;

				if ( holder.EquipItem( this ) )
				{
					if ( this is Candle )
						holder.SendLocalizedMessage( 502969 ); // You put the candle in your left hand.
					else if ( this is Torch )
						holder.SendLocalizedMessage( 502971 ); // You put the torch in your left hand.

					base.Ignite();
				}
				else
				{
					holder.SendLocalizedMessage( 502449 ); // You cannot hold this item.
				}
			}
			else
			{
				base.Ignite();
			}
		}