Merchant.GetSellToPlayerMaxCount
Declaration#
public Int32 GetSellToPlayerMaxCount(Inventory playerInventory, GDTKItem item)Parameters#
| Name | Description |
|---|---|
| playerInventory | Player's Inventory |
| item | Item to check |
Description#
Gets the maximum number of an item that can be sold to player
Usage#
using NullSave.GDTK.Inventory;using UnityEngine;
public class Example : MonoBehaviour{
public void ExampleMethod(Merchant target, Inventory other) { int result = target.GetSellToPlayerMaxCount(other, target.items[0]); }
}