Show / Hide Table of Contents

Class RequirementConfig

Configuration class for requirements needed to craft items or build pieces.
Inheritance
System.Object
RequirementConfig
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Jotunn.Configs
Assembly: Jotunn.dll
Syntax
public class RequirementConfig

Properties

| Improve this Doc View Source

Amount

Amount that is needed to fulfill the requirement. Defaults to 1.
Declaration
public int Amount { get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

AmountPerLevel

How much more of this requirement is needed per item level. Defaults to 0.
Declaration
public int AmountPerLevel { get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

Item

Name of the item prefab of this requirement.
Declaration
public string Item { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

Recover

Determines if the used requirement will be rewarded again after dismanteling a piece. Defaults to false.
Declaration
public bool Recover { get; set; }
Property Value
Type Description
System.Boolean

Methods

| Improve this Doc View Source

GetRequirement()

Creates a Valheim Piece.Requirement from this config.
Declaration
public Piece.Requirement GetRequirement()
Returns
Type Description
Piece.Requirement

Extension Methods

PrefabExtension.FixReferences(Object)
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾