예제 #1
0
        public Item Reconstruct()
        {
            LargeBOD bod = null;

            switch (m_DeedType)
            {
            case BODType.Smith: bod = new LargeSmithBOD(m_AmountMax, m_RequireExceptional, m_Material, ReconstructEntries()); break;

            case BODType.Tailor: bod = new LargeTailorBOD(m_AmountMax, m_RequireExceptional, m_Material, ReconstructEntries()); break;

            case BODType.Inscription: bod = new LargeInscriptionBOD(m_AmountMax, m_RequireExceptional, m_Material, ReconstructEntries()); break;

            case BODType.Alchemy: bod = new LargeAlchemyBOD(m_AmountMax, m_RequireExceptional, m_Material, ReconstructEntries()); break;

            case BODType.Carpentry: bod = new LargeCarpentryBOD(m_AmountMax, m_RequireExceptional, m_Material, ReconstructEntries()); break;

            case BODType.Fletching: bod = new LargeFletchingBOD(m_AmountMax, m_RequireExceptional, m_Material, ReconstructEntries()); break;

            case BODType.Tinkering: bod = new LargeTinkerBOD(m_AmountMax, m_RequireExceptional, m_Material, ReconstructEntries(), m_GemType); break;

            case BODType.Cooking: bod = new LargeCookingBOD(m_AmountMax, m_RequireExceptional, m_Material, ReconstructEntries()); break;
            }

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

            return(bod);
        }
예제 #2
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.Inscription)
            {
                bod = new LargeInscriptionBOD(m_AmountMax, m_RequireExceptional, m_Material, ReconstructEntries());
            }
            else if (m_DeedType == BODType.Alchemy)
            {
                bod = new LargeAlchemyBOD(m_AmountMax, m_RequireExceptional, m_Material, ReconstructEntries());
            }
            else if (m_DeedType == BODType.Carpentry)
            {
                bod = new LargeCarpentryBOD(m_AmountMax, m_RequireExceptional, m_Material, ReconstructEntries());
            }
            else if (m_DeedType == BODType.Fletching)
            {
                bod = new LargeFletchingBOD(m_AmountMax, m_RequireExceptional, m_Material, ReconstructEntries());
            }
            else if (m_DeedType == BODType.Cooking)
            {
                bod = new LargeCookingBOD(m_AmountMax, m_RequireExceptional, m_Material, ReconstructEntries());
            }

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

            return(bod);
        }