Class DaggerfallSkills
Daggerfall skills collection for every entity.
Namespace: DaggerfallWorkshop.Game.Entity
Assembly: Assembly-CSharp.dll
Syntax
[Serializable]
public class DaggerfallSkills
Constructors
| Improve this Doc View SourceDaggerfallSkills()
Declaration
public DaggerfallSkills()
Fields
| Improve this Doc View SourceCount
Declaration
public const int Count = 35
Field Value
Type | Description |
---|---|
Int32 |
MajorSkillsCount
Declaration
public const int MajorSkillsCount = 3
Field Value
Type | Description |
---|---|
Int32 |
MinorSkillsCount
Declaration
public const int MinorSkillsCount = 6
Field Value
Type | Description |
---|---|
Int32 |
PrimarySkillsCount
Declaration
public const int PrimarySkillsCount = 3
Field Value
Type | Description |
---|---|
Int32 |
Methods
| Improve this Doc View SourceAssignMods(Int32[])
Assign mods from effect manager.
Declaration
public void AssignMods(int[] skillMods)
Parameters
Type | Name | Description |
---|---|---|
Int32[] | skillMods |
Clone()
Create a new copy of this stat collection. Does not copy active effect mods.
Declaration
public DaggerfallSkills Clone()
Returns
Type | Description |
---|---|
DaggerfallSkills | New DaggerfallStats which is a copy of this DaggerfallStats. |
Copy(DaggerfallSkills)
Copy contents of another DaggerfallSkills into this one. Does not copy active effect mods.
Declaration
public void Copy(DaggerfallSkills other)
Parameters
Type | Name | Description |
---|---|---|
DaggerfallSkills | other | Skilla collection to copy from. |
GetAdvancementMultiplier(DFCareer.Skills)
Declaration
public static int GetAdvancementMultiplier(DFCareer.Skills skill)
Parameters
Type | Name | Description |
---|---|---|
DFCareer.Skills | skill |
Returns
Type | Description |
---|---|
Int32 |
GetLiveSkillValue(DFCareer.Skills)
Gets live skill value by enum, including effect mods.
Declaration
public short GetLiveSkillValue(DFCareer.Skills skill)
Parameters
Type | Name | Description |
---|---|---|
DFCareer.Skills | skill | Skill to get. |
Returns
Type | Description |
---|---|
Int16 | Skill value. |
GetLiveSkillValue(Int32)
Gets live skill value by index, including effect mods.
Declaration
public short GetLiveSkillValue(int index)
Parameters
Type | Name | Description |
---|---|---|
Int32 | index | Index of skill. |
Returns
Type | Description |
---|---|
Int16 | Skill value. |
GetPermanentSkillValue(DFCareer.Skills)
Gets permanent skill value by enum, does not include effect mods.
Declaration
public short GetPermanentSkillValue(DFCareer.Skills skill)
Parameters
Type | Name | Description |
---|---|---|
DFCareer.Skills | skill | Skill to get. |
Returns
Type | Description |
---|---|
Int16 | Skill value. |
GetPermanentSkillValue(Int32)
Gets permanent skill value by index, does not include effect mods.
Declaration
public short GetPermanentSkillValue(int index)
Parameters
Type | Name | Description |
---|---|---|
Int32 | index | Index of skill. |
Returns
Type | Description |
---|---|
Int16 | Skill value. |
GetPrimaryStat(DFCareer.Skills)
Declaration
public static DFCareer.Stats GetPrimaryStat(DFCareer.Skills skill)
Parameters
Type | Name | Description |
---|---|---|
DFCareer.Skills | skill |
Returns
Type | Description |
---|---|
DFCareer.Stats |
GetPrimaryStat(Int32)
Declaration
public static DFCareer.Stats GetPrimaryStat(int index)
Parameters
Type | Name | Description |
---|---|---|
Int32 | index |
Returns
Type | Description |
---|---|
DFCareer.Stats |
IsLanguageSkill(DFCareer.Skills)
Declaration
public static bool IsLanguageSkill(DFCareer.Skills skill)
Parameters
Type | Name | Description |
---|---|---|
DFCareer.Skills | skill |
Returns
Type | Description |
---|---|
Boolean |
SetDefaults()
Set default value to each skill.
Declaration
public void SetDefaults()
SetPermanentSkillValue(DFCareer.Skills, Int16)
Sets permanent skill value by enum, does not change effect mods.
Declaration
public void SetPermanentSkillValue(DFCareer.Skills skill, short value)
Parameters
Type | Name | Description |
---|---|---|
DFCareer.Skills | skill | Skill to set. |
Int16 | value | Skill value. |
SetPermanentSkillValue(Int32, Int16)
Sets permanent skill value by index, does not change effect mods.
Declaration
public void SetPermanentSkillValue(int index, short value)
Parameters
Type | Name | Description |
---|---|---|
Int32 | index | Index of skill. |
Int16 | value | Skill value. |