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

            if (this.m_DeedType == BODType.Smith)
            {
                bod = new LargeSmithBOD(this.m_AmountMax, this.m_RequireExceptional, this.m_Material, this.ReconstructEntries());
            }
            else if (this.m_DeedType == BODType.Tailor)
            {
                bod = new LargeTailorBOD(this.m_AmountMax, this.m_RequireExceptional, this.m_Material, this.ReconstructEntries());
            }
            //--<< Custom BODs Edit>>-------------------------------[Start 1 of 2]
            else if (m_DeedType == BODType.Carpenter)
            {
                bod = new LargeFletcherBOD(m_AmountMax, m_RequireExceptional, m_Material, ReconstructEntries());
            }
            else if (m_DeedType == BODType.Fletcher)
            {
                bod = new LargeCarpenterBOD(m_AmountMax, m_RequireExceptional, m_Material, ReconstructEntries());
            }
            //--<< Custom BODs Edit>>-------------------------------[End 1 of 2]

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

            return(bod);
        }
Example #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.Carpenter)
            {
                bod = new LargeCarpenterBOD(m_AmountMax, m_RequireExceptional, m_Material, ReconstructEntries());
            }
            else if (m_DeedType == BODType.Fletcher)
            {
                bod = new LargeFletcherBOD(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);
        }