Merchant.RemoveStock
Declaration#
public void RemoveStock(GDTKItem item, Int32 count)Parameters#
| Name | Description |
|---|---|
| item | Item to remove |
| count | Number of the item |
Description#
Removes a specific number of an item from stock
Usage#
using NullSave.GDTK.Inventory;using UnityEngine;
public class Example : MonoBehaviour{
public void ExampleMethod(Merchant target) { target.RemoveStock(InventoryDatabase.instance.items[0], 5); }
}