Esempio n. 1
0
        public void AddFire()
        {
            OutpostFirepit fire = new OutpostFirepit();

            fire.LinkedOutpost = this;
            m_Fire             = fire;
            AddItem(fire, 0, 5, 0);
        }
Esempio n. 2
0
        public void Reset()
        {
            IPooledEnumerable eable = GetItemsInRange(10);

            foreach (Item target in eable)
            {
                if (target is OutpostFirepit)
                {
                    OutpostFirepit firepit = target as OutpostFirepit;
                    firepit.LinkedOutpost = this;
                    m_Fire = firepit;
                    firepit.TurnOff();

                    Active      = false;
                    TimeOfDecay = DateTime.MinValue;
                }

                if (target is OutpostSupplies)
                {
                    OutpostSupplies supplies = target as OutpostSupplies;
                    m_Supplies = supplies;
                    m_Supplies.Delete();
                    m_Supplies = null;
                }
                if (target is SmallTent)
                {
                    m_Tent = target;
                    m_Tent.Delete();
                    m_Tent = null;
                }
                if (target is OutpostBedroll)
                {
                    m_Bed = target;
                    m_Bed.Delete();
                    m_Bed = null;
                }
                if (target is CampStash)
                {
                    m_Stash = target;
                    m_Stash.Delete();
                    m_Stash = null;
                }
                if (target is AnkhWest)
                {
                    m_Ankh = target;
                    m_Ankh.Delete();
                    m_Ankh = null;
                }
            }
        }