Exemple #1
0
        public override void OnDoubleClick(Mobile from)
        {
            if (!Movable)
            {
                return;
            }

            var flour = new SackFlourOpen();

            flour.Location = Location;

            if (Parent is Container)
            {
                ((Container)Parent).DropItem(flour);
            }
            else
            {
                flour.MoveToWorld(GetWorldLocation(), Map);
            }

            if (Amount > 1)
            {
                Amount--;
            }
            else
            {
                Delete();
            }
        }
Exemple #2
0
 public InternalTarget(SackFlourOpen item) : base(1, false, TargetFlags.None)
 {
     m_Item = item;
 }
Exemple #3
0
 public InternalTarget( SackFlourOpen item )
     : base(1, false, TargetFlags.None)
 {
     m_Item = item;
 }