Esempio n. 1
0
        public bool CheckAccess(Mobile m)
        {
            if (!IsLockedDown || m.AccessLevel >= AccessLevel.GameMaster)
            {
                return(true);
            }

            IHouse house = HousingHelper.FindHouseAt(this);

            if (house != null && (house.Public ? house.IsBanned(m) : !house.HasAccess(m)))
            {
                return(false);
            }

            return(house != null && house.HasSecureAccess(m, m_Level));
        }
Esempio n. 2
0
        public bool CheckAccess(Mobile m)
        {
            IHouse house = FindHouse();

            if (house == null)
            {
                return(false);
            }

            if (house.Public ? house.IsBanned(m) : !house.HasAccess(m))
            {
                return(false);
            }

            return(house.HasSecureAccess(m, m_Level));
        }