MerchantPlugin.GetBuyBackPrice
Declaration#
public virtual void GetBuyBackPrice(GDTKItem item, Int32& value)Parameters#
| Name | Description |
|---|---|
| item | Item to get price for |
| value | Current 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); }
}