Skip to main content

Merchant.RemoveStock

Declaration#

public void RemoveStock(GDTKItem item, Int32 count)

Parameters#

NameDescription
itemItem to remove
countNumber 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);    }
}