Пример #1
0
        public Item Reconstruct()
        {
            LargeBOD bod = null;

            if (m_DeedType == BODType.Smith)
            {
                bod = new LargeSmithBOD(m_AmountMax, m_RequireExceptional, m_Material, ReconstructEntries());
            }
            else if (m_DeedType == BODType.Tailor)
            {
                bod = new LargeTailorBOD(m_AmountMax, m_RequireExceptional, m_Material, ReconstructEntries());
            }
            // ***
            else if (m_DeedType == BODType.Hunter)
            {
                bod = new LargeHuntBOD(m_AmountMax, m_RequireExceptional, (int)m_Material, ReconstructEntries());
            }
            // ***

            for (int i = 0; bod != null && i < bod.Entries.Length; ++i)
            {
                bod.Entries[i].Owner = bod;
            }

            return(bod);
        }
Пример #2
0
        public static LargeHuntBOD CreateRandomFor(Mobile m, double skill)
        {
            int curLevel  = 0;
            int levelMax  = 0;
            int amountMax = 0;

            HuntBodUtility.GetLargeBodProps(skill, out levelMax, out amountMax);

            LargeHuntBOD largeBod = new LargeHuntBOD(amountMax, false, 0, null);

            largeBod.Entries  = LargeBulkEntry.ConvertEntries(largeBod, HuntBodUtility.GetLargeEntry(out curLevel, levelMax));
            largeBod.Material = (BulkMaterialType)curLevel;

            return(largeBod);
        }
        public static LargeHuntBOD CreateRandomFor(Mobile m, double skill)
        {
            int curLevel = 0;
            int levelMax = 0;
            int amountMax = 0;

            HuntBodUtility.GetLargeBodProps(skill, out levelMax, out amountMax);

            LargeHuntBOD largeBod = new LargeHuntBOD(amountMax, false, 0, null);

            largeBod.Entries = LargeBulkEntry.ConvertEntries(largeBod, HuntBodUtility.GetLargeEntry(out curLevel, levelMax));
            largeBod.Material = (BulkMaterialType)curLevel;

            return largeBod;
        }
		public Item Reconstruct()
		{
			LargeBOD bod = null;

			if ( m_DeedType == BODType.Smith )
				bod = new LargeSmithBOD( m_AmountMax, m_RequireExceptional, m_Material, ReconstructEntries() );
			else if ( m_DeedType == BODType.Tailor )
				bod = new LargeTailorBOD( m_AmountMax, m_RequireExceptional, m_Material, ReconstructEntries() );
            // ***
            else if (m_DeedType == BODType.Hunter)
                bod = new LargeHuntBOD(m_AmountMax, m_RequireExceptional, (int)m_Material, ReconstructEntries());
            // ***

			for ( int i = 0; bod != null && i < bod.Entries.Length; ++i )
				bod.Entries[i].Owner = bod;

			return bod;
		}