public void PackItem( Item item )
{
if ( Summoned || item == null )
{
if ( item != null )
item.Delete();
return;
}
Container pack = Backpack;
if ( pack == null )
{
pack = new Backpack();
pack.Movable = false;
AddItem( pack );
}
if ( !item.Stackable || !pack.TryDropItem( this, item, false ) ) // try stack
pack.DropItem( item ); // failed, drop it anyway
}