-
Notifications
You must be signed in to change notification settings - Fork 0
CreateRecipe
Aidanamite edited this page Oct 11, 2021
·
3 revisions
Description:
Creates a Recipe object. Use for the RegisterBlacksmithRecipeSet and RegisterWitchRecipeSet methods
Returns: Recipe
Arguments:
-
ItemMaster CraftedItemThe item specified is the result of the recipe -
List<RecipeIngredient> IngredientsThe list of ingredients used for the recipe -
int CostThis is the gold cost of the recipe -
int MinPlusLevel (default: 0)The minimum plus level that the recipe is available on -
bool IsPriceFixed (default: true)The game may adjust the recipe's price based on several factors if this is set to false. -
int SortingIndex (default: Int32.MaxValue)Used to sort the list of recipes in a recipe set -
bool UnlockedAtStart (default: true)If true the recipe will be already unlocked
Example:
var recipe = AssetLib.AssetLibTools.CreateRecipe(
myItem,
new List<RecipeIngredient>{
new RecipeIngredient("White Stone", 2),
new RecipeIngredient("Hardened Steel", 4),
new RecipeIngredient("Fabric", 2)
}, 100000, SortingIndex: 0);