/**********************************************************
RunUO 2.0 AoV C# script file
Official Age of Valor Script :: www.uovalor.com
Last modified by Death on Apr-18-2011 09:34:34pm
Filepath: scripts\_custom\events and scenarios\Easter 2011\HolidayCandle.cs
Lines of code: 67
***********************************************************/


using System;
using Server;

namespace Server.Items
{
	[Flipable]
	public class HolidayCandle : BaseLight
	{
		public override int LitItemID
		{
			get
			{
				if ( ItemID == 0x236E )
					return 0x236E;
				else
					return 0x2371;
			}
		}
		
		public override int UnlitItemID
		{
			get
			{
				if ( ItemID == 0x236E )
					return 0x236E;
				else
					return 0x2371;
			}
		}
		
		[Constructable]
		public HolidayCandle() : base( 0x236E )
		{
			Name = "a holiday candle";
			LootType=LootType.Blessed;
			Movable = true;
			Duration = TimeSpan.Zero; // Never burnt out
			Burning = false;
			Light = LightType.Circle225;
			Weight = 1.0;
		}
		
		public override void GetProperties( ObjectPropertyList list)
		{
			base.GetProperties( list );
			list.Add( 1060658,"Christmas \t" + "2010");
		}
		
		public HolidayCandle( Serial serial ) : base( serial )
		{
		}

		public void Flip()
		{
			Light = LightType.Circle225;

			switch ( ItemID )
			{
				case 0x236E: ItemID = 0x2371; break;
				case 0x2371: ItemID = 0x236E; break;
			}
		}

		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );
			writer.Write( (int) 0 );
		}

		public override void Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );
			int version = reader.ReadInt();
		}
	}
}