
////////////////////////////////////////
//                                    //
//   Generated by CEO's YAAAG - V1.2  //
// (Yet Another Arya Addon Generator) //
//                                    //
////////////////////////////////////////
using System;
using Server;
using Server.Items;

namespace Server.Items
{
	public class BloodyShowerSouthAddon : BaseAddon
	{
        private static int[,] m_AddOnSimpleComponents = new int[,] {
			  {1180, -2, -2, 0}, {1180, -2, -1, 0}, {1180, -2, 0, 0}// 1	2	3	
			, {1180, -2, 1, 0}, {1180, -1, -2, 0}, {1180, -1, -1, 0}// 4	5	6	
			, {1180, -1, 0, 0}, {1180, -1, 1, 0}, {1180, 0, -2, 0}// 7	8	9	
			, {1180, 0, -1, 0}, {1180, 0, 0, 0}, {1180, 0, 1, 0}// 10	11	12	
			, {1180, 1, -2, 0}, {1180, 1, -1, 0}, {1180, 1, 0, 0}// 13	14	15	
			, {1180, 1, 1, 0}, {7570, -1, -2, 0}, {7571, 0, -2, 0}// 16	20	21	
			, {7572, -2, 0, 0}, {4651, 0, -2, 0}, {4650, -2, -2, 0}// 22	23	24	
			, {4653, -1, -1, 0}, {6197, -1, -2, 16}, {3721, 1, 0, 12}// 25	26	31	
			, {3722, 0, 1, 12}// 32	
		};

 
            
		public override BaseAddonDeed Deed
		{
			get
			{
				return new BloodyShowerSouthAddonDeed();
			}
		}

		[ Constructable ]
		public BloodyShowerSouthAddon()
		{

            for (int i = 0; i < m_AddOnSimpleComponents.Length / 4; i++)
                AddComponent( new AddonComponent( m_AddOnSimpleComponents[i,0] ), m_AddOnSimpleComponents[i,1], m_AddOnSimpleComponents[i,2], m_AddOnSimpleComponents[i,3] );


			AddComplexComponent( (BaseAddon) this, 2913, -2, -1, 11, 1891, -1, "", 1);// 17
			AddComplexComponent( (BaseAddon) this, 3835, -2, -1, 17, 0, -1, "Shampoo", 1);// 18
			AddComplexComponent( (BaseAddon) this, 5154, -2, -1, 12, 0, -1, "Soap", 1);// 19
			AddComplexComponent( (BaseAddon) this, 5645, 2, -2, 0, 2450, -1, "Bloody Shower Curtain", 1);// 27
			AddComplexComponent( (BaseAddon) this, 5645, 2, 1, 0, 2450, -1, "Bloody Shower Curtain", 1);// 28
			AddComplexComponent( (BaseAddon) this, 5646, 1, 2, 0, 2450, -1, "Bloody Shower Curtain", 1);// 29
			AddComplexComponent( (BaseAddon) this, 5646, -2, 2, 0, 2450, -1, "Bloody Shower Curtain", 1);// 30
			AddComplexComponent( (BaseAddon) this, 5535, 3, -2, 0, 2747, -1, "Bloody Towel", 1);// 33

		}

		public BloodyShowerSouthAddon( Serial serial ) : base( serial )
		{
		}

        private static void AddComplexComponent(BaseAddon addon, int item, int xoffset, int yoffset, int zoffset, int hue, int lightsource)
        {
            AddComplexComponent(addon, item, xoffset, yoffset, zoffset, hue, lightsource, null, 1);
        }

        private static void AddComplexComponent(BaseAddon addon, int item, int xoffset, int yoffset, int zoffset, int hue, int lightsource, string name, int amount)
        {
            AddonComponent ac;
            ac = new AddonComponent(item);
            if (name != null && name.Length > 0)
                ac.Name = name;
            if (hue != 0)
                ac.Hue = hue;
            if (amount > 1)
            {
                ac.Stackable = true;
                ac.Amount = amount;
            }
            if (lightsource != -1)
                ac.Light = (LightType) lightsource;
            addon.AddComponent(ac, xoffset, yoffset, zoffset);
        }

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

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

	public class BloodyShowerSouthAddonDeed : BaseAddonDeed
	{
		public override BaseAddon Addon
		{
			get
			{
				return new BloodyShowerSouthAddon();
			}
		}

		[Constructable]
		public BloodyShowerSouthAddonDeed()
		{
			Name = "BloodyShowerSouth";
		}

		public BloodyShowerSouthAddonDeed( Serial serial ) : base( serial )
		{
		}

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

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