Skip to main content

GDTKItem.AddStatValue

Declaration#

public void AddStatValue(string id, float addValue)

Parameters#

NameDescription
idId of the stat to set
addValueValue to add

Description#

Add to the value of a stat

Usage#

using NullSave.GDTK.Inventory;using UnityEngine;
public class CodeSample : MonoBehaviour{
    public void ExampleMethod(GDTKItem target)    {        target.AddStatValue(target.statIds[0], 1.4f);    }
}