Constructor RequirementConfig
| Edit this page View SourceRequirementConfig()
Creates a new requirement config with default values.
Declaration
public RequirementConfig()
RequirementConfig(string, int, int, bool)
Creates a new requirement config with the given values.
Declaration
public RequirementConfig(string item, int amount, int amountPerLevel = 0, 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 craft an item/piece |
int | amountPerLevel | The amount of items needed to upgrade an item. Does not apply to pieces. The basic formular is: Upgrade Amount = Item Level * Amount Per Level |
bool | recover | Whether the item is dropped after deconstructing a piece |