Exemplo n.º 1
0
 /// <summary>
 ///     Return item from inventory by example including partial item stack
 /// </summary>
 /// <param name="item">Example item to find in inventory</param>
 /// <returns>Returns the item or partial stack (null if item not found)</returns>
 public ItemBase RemovePartialStack(ItemBase item)
 {
     return(ItemBaseUtil.RemoveListItem(item, ref this.Inventory, true));
 }
Exemplo n.º 2
0
 /// <summary>
 ///     Return item from inventory by example (obeys stack size)
 /// </summary>
 /// <param name="item">Example item to find in inventory</param>
 /// <returns>Returns the item or null if unavailable or insufficient stack size</returns>
 public ItemBase RemoveItem(ItemBase item)
 {
     return(ItemBaseUtil.RemoveListItem(item, ref this.Inventory, false));
 }