示例#1
0
文件: Fish.cs 项目: Evad-lab/ServUOX
        public bool Carve(Mobile from, Item item)
        {
            if (Parent is ShippingCrate && !((ShippingCrate)Parent).CheckCarve(this))
            {
                return(false);
            }

            Item newItem = GetCarved;

            if (newItem == null)
            {
                newItem = new RawFishSteak();
            }

            if (newItem != null && HasSocket <Caddellite>())
            {
                newItem.AttachSocket(new Caddellite());
            }

            if (newItem != null)
            {
                base.ScissorHelper(from, newItem, GetCarvedAmount);
            }

            return(true);
        }
示例#2
0
        public bool Carve(Mobile from, Item item)
        {
            var fish = new RawFishSteak();

            if (HasSocket <Caddellite>())
            {
                fish.AttachSocket(new Caddellite());
            }

            base.ScissorHelper(from, fish, 4);

            return(true);
        }