Show / Hide Table of Contents

Class DropConfig

Configuration class for drops of CustomCreatures used in CreatureConfig.
Inheritance
object
DropConfig
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 DropConfig

Properties

Name Description
Chance Chance of this drop in percent. Defaults to 100f.
Item Name of the item prefab of this drop. Gets resolved by Jötunn at runtime.
LevelMultiplier Should the drop amount be multiplied by the creature level. Defaults to true.
MaxAmount Maximum amount of this drop. Defaults to 1.
MinAmount Minimum amount of this drop. Defaults to 1.
OnePerPlayer If true, only one instance per active player will be dropped regardless of min/max amount. Defaults to false.

Methods

Name Description
GetDrop() Creates a Valheim CharacterDrop.Drop from this config.

Extension Methods

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