context: using System;
  using System.Collections;
  using Server;
  using Server.Items;
  using Server.Mobiles;
  using Server.Engines.Craft;
  
  namespace Server.Engines.BulkOrders
  {
  	[TypeAlias( "Scripts.Engines.BulkOrders.SmallTamingBOD" )]
  	public class SmallTamingBOD : SmallMobileBOD
  	{
  
  		public override int ComputeFame()
  		{
  			int bonus = 0;
  
  			bonus += 20;
  
  			return 10 + Utility.Random( bonus );
  		}
  
  		public override int ComputeGold()
  		{
  			int bonus = 0;
  
  			bonus += 500;
  
  			return 750 + Utility.Random( bonus );
  		}
  
  		public override ArrayList ComputeRewards()
  		{
  			if ( Type == null )
  				return new ArrayList();
  
  			bool tps5 = false, tps10 = false;
  			bool lps5 = false, lps10 = false;
  			bool vps5 = false, vps10 = false;
  			bool shoes3 = false;
  			bool sandals3 = false;
  			bool boots3 = false;
  			bool sash3 = false;
  			bool apron3 = false;
  			bool robe3 = false;
  			bool biotool = false;
  			bool dhe = false, dhs = false;
  			bool pbd = false;
  			bool wh = false;
  			bool ppsm5 = false, ppsm10 = false;
  			bool ppst5 = false, ppst10 = false;
  			bool ppsw5 = false, ppsw10 = false;
  			bool ppsmed5 = false, ppsmed10 = false;
  			bool ppsmr5 = false, ppsmr10 = false;
  			bool ppse5 = false, ppse10 = false;
  			bool ppsa5 = false, ppsa10 = false;
  
  			if ( Type.IsSubclassOf( typeof( BaseCreature ) ) )
  			{
  				BaseCreature bc = null;
  
  				if ( Type != null )
  				{
  					object o = Activator.CreateInstance( Type );
          				bc = o as BaseCreature;
  				}
  
  				if ( bc.MinTameSkill <= 25.0 )
  				{
  					if ( AmountMax == 10 )
  					{
  						if ( FSATS.EnableBioEngineer == true )
  							biotool = true;
  
  						shoes3 = true;
  						sandals3 = true;
  						boots3 = true;
  					}
  					else if ( AmountMax == 15 )
  					{
  						if ( FSATS.EnableBioEngineer == true )
  							biotool = true;
  
  						sash3 = true;
  						apron3 = true;
  						robe3 = true;
  					}
  					else if ( AmountMax == 20 )
  					{
  						sash3 = true;
  						apron3 = true;
  						robe3 = true;
  						shoes3 = true;
  						sandals3 = true;
  						boots3 = true;
  					}
  				}
  				else if ( bc.MinTameSkill <= 65.0 )
  				{
  					if ( AmountMax == 10 )
  					{
  						sash3 = true;
  						apron3 = true;
  						robe3 = true;
  						shoes3 = true;
  						sandals3 = true;
  						boots3 = true;
  					}
  					else if ( AmountMax == 15 )
  					{
  						ppsm5 = true;
  						ppst5 = true;
  						ppsw5 = true;
  						ppsmed5 = true;
  						ppsmr5 = true;
  						ppse5 = true;
  						ppsa5 = true;
  					}
  					else if ( AmountMax == 20 )
  					{
  						ppsm10 = true;
  						ppst10 = true;
  						ppsw10 = true;
  						ppsmed10 = true;
  						ppsmr10 = true;
  						ppse10 = true;
  						ppsa10 = true;
  					}
  				}
  				else if ( bc.MinTameSkill <= 80.0 )
  				{
  					if ( AmountMax == 10 )
  					{
  						ppsm10 = true;
  						ppst10 = true;
  						ppsw10 = true;
  						ppsmed10 = true;
  						ppsmr10 = true;
  						ppse10 = true;
  						ppsa10 = true;
  					}
  					else if ( AmountMax == 15 )
  					{
  						wh = true;
  					}
  					else if ( AmountMax == 20 )
  					{
  						wh = true;
  					}
  				}
  				else
  				{
  					if ( AmountMax == 10 )
  					{
  						wh = true;
  					}
  					else if ( AmountMax == 15 )
  					{
  						tps5 = true;
  						lps5 = true;
  						vps5 = true;
  					}
  					else if ( AmountMax == 20 )
  					{
  						tps10 = true;
  						lps10 = true;
  						vps10 = true;
  					}
  				}
  
  				bc.Delete();
  			}
  
  			ArrayList list = new ArrayList();
  
  			if ( tps5 )
  				list.Add( new PowerScroll( SkillName.AnimalTaming, 105 ) );
  
  			if ( tps10 )
  				list.Add( new PowerScroll( SkillName.AnimalTaming, 110 ) );
  
  			if ( lps5 )
  				list.Add( new PowerScroll( SkillName.AnimalLore, 105 ) );
  
  			if ( lps10 )
  				list.Add( new PowerScroll( SkillName.AnimalLore, 110 ) );
  
  			if ( vps5 )
  				list.Add( new PowerScroll( SkillName.Veterinary, 105 ) );
  
  			if ( vps10 )
  				list.Add( new PowerScroll( SkillName.Veterinary, 110 ) );
  
  			if ( shoes3 )
  				list.Add( new ShoesOfVeterinary( 3 ) );
  
  			if ( sandals3 )
  				list.Add( new SandalsOfVeterinary( 3 ) );
  
  			if ( boots3 )
  				list.Add( new BootsOfVeterinary( 3 ) );
  
  			if ( sash3 )
  				list.Add( new SashOfAnimalLore( 3 ) );
  
  			if ( apron3 )
  				list.Add( new HalfApronOfAnimalLore( 3 ) );
  
  			if ( robe3 )
  
gt: 				list.Add( new RobeOfAnimalLore( 3 ) );