Example #1
0
            public BaseGalleon CheckGalleonPlacement(Mobile from, BaseAddon addon, Point3D p, Map map)
            {
                if (addon.Components.Count > 1)
                {
                    return(null);
                }

                BaseGalleon galleon = BaseGalleon.FindGalleonAt(p, map);

                if (galleon != null && galleon.CanAddAddon(p))
                {
                    return(galleon);
                }

                return(null);
            }