Server.Multis.BrigandCamp.AddComponents C# (CSharp) Méthode

AddComponents() public méthode

public AddComponents ( ) : void
Résultat void
		public override void AddComponents()
		{
			BaseCreature bc;
			//BaseEscortable be;

			Visible = false;
			DecayDelay = TimeSpan.FromMinutes( 5.0 );

			AddItem(new Static(0x10ee), 0, 0, 0);
			AddItem(new Static(0xfac), 0, 7, 0);
			
			switch ( Utility.Random( 3 ) )
			{
				case 0:
				{
					AddItem( new Item( 0xDE3 ), 0, 7, 0 ); // Campfire
					AddItem( new Item( 0x974 ), 0, 7, 1 ); // Cauldron
					break;
				}
				case 1:
				{
					AddItem( new Item( 0x1E95 ), 0, 7, 1 ); // Rabbit on a spit
					break;
				}
				default:
				{
					AddItem( new Item( 0x1E94 ), 0, 7, 1 ); // Chicken on a spit
					break;
				}
			}

			AddCampChests();
			
			for ( int i = 0; i < 4; i ++ )
			{				
				AddMobile( Brigands, 6, Utility.RandomMinMax( -7, 7 ), Utility.RandomMinMax( -7, 7 ), 0 );
			}
			
			switch ( Utility.Random( 2 ) )
			{
				case 0: m_Prisoner = new Noble(); break;
				default: m_Prisoner = new SeekerOfAdventure(); break;
			}
			
			//be = (BaseEscortable)m_Prisoner;
			//be.m_Captive = true;
			
			bc = (BaseCreature)m_Prisoner;
			bc.IsPrisoner = true;
			bc.CantWalk = true;
			
			m_Prisoner.YellHue = Utility.RandomList( 0x57, 0x67, 0x77, 0x87, 0x117 );
			AddMobile( m_Prisoner, 2, Utility.RandomMinMax( -2, 2 ), Utility.RandomMinMax( -2, 2 ), 0 );
		}