Merchant.LearnRecipe
Declaration#
public virtual void LearnRecipe(string recipeId, bool raiseEvents)Parameters#
| Name | Description |
|---|---|
| recipeId | Id to learn |
| raiseEvents | Raise 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); }
}