Show / Hide Table of Contents

Class SkillConfig

Configuration class for adding custom skills.
Inheritance
object
SkillConfig
Inherited Members
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 SkillConfig

Properties

Name Description
Description The in-game description for your skill. Can either be the description you want to see in-game, or a localization token.
Icon The in-game icon for your skill. If null, will default to a "shield" icon.
IconPath The path to load an icon png/jpg file from. If you wish to load from an asset bundle, use a $ to separate the path to the asset bundle, and your sprite name in the asset bundle

This cannot be set if Icon is also set. You can only set one of them at once.

This sample shows how you would load a sprite from an asset bundle:
IconPath = "MyMod/Assets/assetbundle$mysprite"
Identifier A unique string used to identify the skill, and used to generate the UID.

Do not change the Identifier after you have released a mod using it. If the Identifier changes, so will the skill's SkillType/UID, so all users who have your mod will lose their save progress for the skill.

IncreaseStep The multiplier applied to all XP gained for this skill via Skills.RaiseSkill(Skills.SkillType, float). If this is set to 0, your skill will be unable to gain XP at all.
Name The in-game name for your skill. Can either be the name you want to see in-game, or a localization token.
UID A SkillType used to distinguish this skill from others. This is a unique ID that Jotunn generates based on the Identifier provided.

Methods

Name Description
FromJson(string) Loads a single SkillConfig from a JSON string.
ListFromJson(string) Loads a list of SkillConfigs from a JSON string.
ToSkillDef() Converts a Jotunn SkillConfig into a Valheim SkillDef.
ToString() Converts the SkillConfig to a printable string.

Extension Methods

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