/**********************************************************
RunUO 2.0 AoV C# script file
Official Age of Valor Script :: www.uovalor.com
Last modified by 
Filepath: scripts\_custom\items\misc\BagOfCommonMPResources.cs
Lines of code: 54
***********************************************************/


using System;
using Server;
using Server.Items;

namespace Server.Items
{
	public class BagOfCommonMPResources : Bag
	{
		[Constructable]
		public BagOfCommonMPResources() : this( 10 )
		{
		}

		[Constructable]
		public BagOfCommonMPResources( int amount )
		{
			for ( int j = 0; j < amount; j++ )
			{
				switch ( Utility.Random( 18 ))
				{                                   
					case 0: DropItem( new LesserDetriment( Utility.Random(2,8) )); break;   
					case 1: DropItem( new GreaterDetriment( Utility.Random(2,8) )); break;
					case 2: DropItem( new VolcanicAura( Utility.Random(1,5) )); break;
					case 3: DropItem( new ContaminatingSlime( Utility.Random(1,5) )); break;    
					case 4: DropItem( new WitheringCold( Utility.Random(1,5) )); break;   
					case 5: DropItem( new IronForce( Utility.Random(1,5) )); break;  
					case 6: DropItem( new ElectricStorm( Utility.Random(1,5) )); break;
					case 7: DropItem( new ShimmeringLight()); break;    
					case 8: DropItem( new MythrilIngot());break;   
					case 9: DropItem( new SoulOfFire()); break;  
					case 10: DropItem( new EssenceOfFrost()); break;
					case 11: DropItem( new SpectreOfNox()); break;    
					case 12: DropItem( new SpiritOfRock());break;   
					case 13: DropItem( new GhostOfEnergy()); break;  
					case 14: DropItem( new LuckyClovers( Utility.Random(1,8) )); break;
					case 15: DropItem( new SurrenderingAttack( Utility.Random(1,4) )); break;  
					case 16: DropItem( new SurrenderingDefense( Utility.Random(1,4) )); break;
					case 17: DropItem( new DraughtOfAlchemy( Utility.Random(1,5) )); break;
				}		
			}
		}

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

		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );

			writer.Write( (int) 0 ); // version
		}

		public override void Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );

			int version = reader.ReadInt();
		}
	}
}