Server.Items.NightSightPotion.Drink C# (CSharp) Méthode

Drink() public méthode

public Drink ( Server.Mobile from ) : void
from Server.Mobile
Résultat void
		public override void Drink( Mobile from )
		{
			if ( from.BeginAction( typeof( LightCycle ) ) )
			{
				new LightCycle.NightSightTimer( from ).Start();
				from.LightLevel = LightCycle.DungeonLevel / 2;

				from.FixedParticles( 0x376A, 9, 32, 5007, EffectLayer.Waist );
				from.PlaySound( 0x1E3 );

				BasePotion.PlayDrinkEffect( from );

				Consume();
			}
			else
			{
				from.SendMessage( "You already have nightsight." );
			}
		}
	}