Skip to main content

Merchant.GetSellToPlayerTotal

Declaration#

public Int32 GetSellToPlayerTotal(Inventory playerInventory, GDTKItem item, Int32 count)

Parameters#

NameDescription
playerInventoryPlayer's Inventory
itemItem to check
countNumber of the item

Description#

Gets the total cost to sell a specific number of an item to player

Usage#

using NullSave.GDTK.Inventory;using UnityEngine;
public class Example : MonoBehaviour{
    public void ExampleMethod(Merchant target, Inventory other)    {        int result = target.GetSellToPlayerTotal(other, target.items[0], 1);    }
}