Table of Contents

Class WoodworkingRecipe

Namespace
TinyLife.Skills
Assembly
Tiny Life.dll

A woodworking recipe stores information about what items can be crafted at a WoodworkingTable. New woodworking recipes for custom (or built-in) furniture items can be registered using Register(WoodworkingRecipe).

[JsonConverter(typeof(StaticJsonConverter<WoodworkingRecipe>), new object[] { typeof(WoodworkingRecipe), "PrivateRecipes" })]
public class WoodworkingRecipe
Inheritance
WoodworkingRecipe
Inherited Members
Extension Methods

Constructors

WoodworkingRecipe(FurnitureType, int, float, TimeSpan)

Creates a new woodworking recipe with the given settings

public WoodworkingRecipe(FurnitureType output, int requiredLevel, float priceMultiplier, TimeSpan craftingTime)

Parameters

output FurnitureType

The recipe's output

requiredLevel int

The required Woodworking skill level

priceMultiplier float

A value that is multiplied with the Output's regular price to determine the price of crafting this woodworking recipe

craftingTime TimeSpan

The amount of in-game time that it takes (an unskilled person) to craft this woodwork

Fields

CraftingTime

The amount of in-game time that it takes (an unskilled person) to craft this woodwork. The higher the Woodworking level of the person, the more this time is reduced, based on GetEfficiencyModifier(float, ActionInfo, SkillType, float).

public readonly TimeSpan CraftingTime

Field Value

TimeSpan

Output

The FurnitureType that this woodworking recipe produces

public readonly FurnitureType Output

Field Value

FurnitureType

PriceMultiplier

A value that is multiplied with the Output's regular price to determine the price of crafting this woodworking recipe

public readonly float PriceMultiplier

Field Value

float

Recipes

A registry of all of the recipes that have been registered using Register(WoodworkingRecipe)

public static readonly ReadOnlyDictionary<string, WoodworkingRecipe> Recipes

Field Value

ReadOnlyDictionary<string, WoodworkingRecipe>

RequiredLevel

The required level of the Woodworking skill

public readonly int RequiredLevel

Field Value

int

Properties

Name

The name of this woodworking recipe, which is always the Output's Name

public string Name { get; }

Property Value

string

Methods

Register(WoodworkingRecipe)

Registers a new woodworking recipe to the Types registry

public static WoodworkingRecipe Register(WoodworkingRecipe recipe)

Parameters

recipe WoodworkingRecipe

The recipe to register

Returns

WoodworkingRecipe

The recipe passed, for chaining