Ejemplo n.º 1
0
        public override void OnSubItemAdded( Item item )
        {
            base.OnSubItemAdded( item );

            if ( GetVendorItem( item ) == null && CanBeVendorItem( item ) )
            {
                // TODO: default price should be dependent to the type of object
                SetVendorItem( item, 999, "" );
                item.OnPlacedForSale( this );
            }
        }