using System.Collections;
using System.Collections.Generic;
using Server.Items;

namespace Server.Mobiles
{
	public class SBScribe: SBInfo
	{
        private readonly List<GenericBuyInfo> m_BuyInfo = new InternalBuyInfo();
        private readonly IShopSellInfo m_SellInfo = new InternalSellInfo();

	    public override IShopSellInfo SellInfo { get { return m_SellInfo; } }
		public override List<GenericBuyInfo> BuyInfo { get { return m_BuyInfo; } }

		public class InternalBuyInfo : List<GenericBuyInfo>
		{
			public InternalBuyInfo()
			{
                Add(new GenericBuyInfo(typeof(ScribesPen), 8, Utility.RandomMinMax(15, 25), 0xFBF, 0));
                Add(new GenericBuyInfo(typeof(BlankScroll), 6, Utility.RandomMinMax(75, 200), 0x0E34, 0));
                Add(new GenericBuyInfo(typeof(ScribesPen), 8, Utility.RandomMinMax(15, 25), 0xFC0, 0));
                Add(new GenericBuyInfo(typeof(BrownBook), 15, Utility.RandomMinMax(5, 15), 0xFEF, 0));
				Add( new GenericBuyInfo( typeof( TanBook ), 15, Utility.RandomMinMax(5, 15), 0xFF0, 0 ) );
				Add( new GenericBuyInfo( typeof( BlueBook ), 15, Utility.RandomMinMax(5, 15), 0xFF2, 0 ) );
				//Add( new GenericBuyInfo( "1041267", typeof( Runebook ), 3500, 10, 0xEFA, 0x461 ) );
			}
		}

		public class InternalSellInfo : GenericSellInfo
		{
			public InternalSellInfo()
			{
				Add( typeof( ScribesPen ), 4 );
				Add( typeof( BrownBook ), 7 );
				Add( typeof( TanBook ), 7 );
				Add( typeof( BlueBook ), 7 );
				Add( typeof( BlankScroll ), 3 );
			}
		}
	}
}