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 SourceAmount
Amount that is needed to fulfill the requirement. Defaults to 1.
Declaration
public int Amount { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
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 |
Item
Name of the item prefab of this requirement.
Declaration
public string Item { get; set; }
Property Value
Type | Description |
---|---|
System.String |
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 SourceGetRequirement()
Creates a Valheim Piece.Requirement from this config.
Declaration
public Piece.Requirement GetRequirement()
Returns
Type | Description |
---|---|
Piece.Requirement |