Ejemplo n.º 1
0
        public virtual bool AllowHousing(Mobile from, Point3D p)
        {
            if (m_Parent != null)
            {
                return(m_Parent.AllowHousing(from, p));
            }

            return(true);
        }
Ejemplo n.º 2
0
		private static bool IsValidRegion(Point3D location, Region region)
		{
			// exclude all funky locations
			// if we cannot put a house there, and it isn't a town, then we don't want to spawn there
			if (region == null) return false;
			if (region.AllowHousing(new Mobile(), location) == false && !IsTown(region.Name)) return false;
			if (region is Server.Regions.AngelIsland) return false;
			if (region is GreenAcres) return false;
			if (region is HouseRegion) return false;
			if (region is Server.Regions.Jail) return false;
			return true;
		}