Пример #1
0
        public virtual bool Dye(Mobile mob, DyeTub sender)
        {
            if (mob == null || sender == null || !mob.CanSee(sender) || !sender.IsAccessibleTo(mob))
            {
                return(false);
            }

            Hue = sender.DyedHue;
            return(true);
        }
Пример #2
0
        public override bool Dye(Mobile from, DyeTub sender)
        {
            if (from == null || sender == null || !from.CanSee(sender) || !sender.IsAccessibleTo(from))
            {
                return(false);
            }

            if (!(sender is FurnitureDyeTub))
            {
                return(false);
            }

            return(base.Dye(from, sender));
        }