Show / Hide Table of Contents

Class RequirementConfig

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

Constructors

Name Description
RequirementConfig() Creates a new requirement config with default values.
RequirementConfig(string, int, int, bool) Creates a new requirement config with the given values.

Properties

Name Description
Amount Amount that is needed to fulfill the requirement. Defaults to 1.
AmountPerLevel How much more of this requirement is needed per item level. Defaults to 0.
Item Name of the item prefab of this requirement.
Recover Whether the item is dropped after deconstructing a piece. Defaults to true.

Methods

Name Description
GetRequirement() Creates a Valheim Piece.Requirement from this config.
IsValid() Checks if the requirement has any item and amount set.

Extension Methods

PrefabExtension.FixReferences(object)
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Generated by DocFX
☀
☾