Skip to main content

Merchant.LearnRecipe

Declaration#

public virtual void LearnRecipe(string recipeId, bool raiseEvents)

Parameters#

NameDescription
recipeIdId to learn
raiseEventsRaise associated event(s)

Description#

Add recipe to known list by id

Usage#

using NullSave.GDTK.Inventory;using UnityEngine;
public class Example : MonoBehaviour{
    public void ExampleMethod(Merchant target)    {        target.LearnRecipe(InventoryDatabase.instance.recipes[0].info.id);    }
}