Show / Hide Table of Contents

Method AddRequirement

| Edit this page View Source

AddRequirement(RequirementConfig)

Appends a new RequirementConfig to the array of existing ones.
If the requirement is null or is not valid (has not item name or amount set) nothing will be added.
Declaration
public void AddRequirement(RequirementConfig requirementConfig)
Parameters
Type Name Description
RequirementConfig requirementConfig
| Edit this page View Source

AddRequirement(string, int, bool)

Appends a new RequirementConfig to the array of existing ones.
If the item name is null or empty or the amount is less than 1 nothing will be added.
Declaration
public void AddRequirement(string item, int amount, bool recover = true)
Parameters
Type Name Description
string item The internal item prefab id, see https://valheim-modding.github.io/Jotunn/data/objects/item-list.html or the Valheim Wiki
int amount The amount of items needed to place this piece
bool recover Whether the item is dropped after deconstructing a piece
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Generated by DocFX
☀
☾