Server.Items.FillableContainer.GetSpawnCount C# (CSharp) Méthode

GetSpawnCount() protected méthode

protected GetSpawnCount ( ) : int
Résultat int
		protected virtual int GetSpawnCount()
		{
			int itemsCount = GetItemsCount();

			if( itemsCount > SpawnThreshold )
				return 0;

			int maxSpawnCount = ( 1 + SpawnThreshold - itemsCount ) * 2;

			return Utility.RandomMinMax( 0, maxSpawnCount );
		}