public BaseHouse(int multiID, Mobile owner, int MaxLockDown, int MaxSecure)
: base(multiID)
{
m_AllHouses.Add(this);
this.m_Public = true; // <---
this.m_LastRefreshed = DateTime.UtcNow;
this.m_BuiltOn = DateTime.UtcNow;
this.m_LastTraded = DateTime.MinValue;
this.m_Doors = new ArrayList();
this.m_LockDowns = new ArrayList();
this.m_Secures = new ArrayList();
this.m_Addons = new ArrayList();
this.m_CoOwners = new ArrayList();
this.m_Friends = new ArrayList();
this.m_Bans = new ArrayList();
this.m_Access = new ArrayList();
this.m_VendorRentalContracts = new ArrayList();
this.m_InternalizedVendors = new ArrayList();
this.m_Owner = owner;
this.m_MaxLockDowns = MaxLockDown;
this.m_MaxSecures = MaxSecure;
this.m_RelativeBanLocation = this.BaseBanLocation;
this.UpdateRegion();
if (owner != null)
{
List<BaseHouse> list = null;
m_Table.TryGetValue(owner, out list);
if (list == null)
m_Table[owner] = list = new List<BaseHouse>();
list.Add(this);
}
this.Movable = false;
}
We use essential cookies to make this site work, and optional cookies to enhance your experience.