Skip to main content

MerchantPlugin.GetBuyBackPrice

Declaration#

public virtual void GetBuyBackPrice(GDTKItem item, Int32& value)

Parameters#

NameDescription
itemItem to get price for
valueCurrent value of item which can be modified

Description#

Get the buy back price for an item

Usage#

using NullSave.GDTK;using NullSave.GDTK.Inventory;using UnityEngine;
public class Example : MonoBehaviour{
    public void ExampleMethod(Merchant target, GDTKItem other)    {        int value = other.value;        foreach (UniversalPluginWrapper<MerchantPlugin> wrapper in target.plugins)        {            wrapper.plugin.GetBuyBackPrice(other, ref value);        }
        Debug.Log("Final value: " + value);    }
}