public static bool CheckAccess( IHouse house, Mobile from ) { if ( house.Public ) return !house.IsBanned( from ); return house.HasAccess( from ); }
public static bool CheckAccess(IHouse house, Mobile from) { if (house.Public) { return(!house.IsBanned(from)); } return(house.HasAccess(from)); }
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)); }
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)); }