Merchant.GetBuyFromPlayerMaxCount
#
Declarationpublic Int32 GetBuyFromPlayerMaxCount(Inventory playerInventory, GDTKItem item)
#
ParametersName | Description |
---|---|
playerInventory | Player's Inventory |
item | Item to check |
#
DescriptionGets the maximum number of an item that can be bought from player
#
Usageusing NullSave.GDTK.Inventory;using UnityEngine;
public class Example : MonoBehaviour{
public void ExampleMethod(Merchant target, Inventory other) { int result = target.GetBuyFromPlayerMaxCount(other, other.items[0]); }
}