skill ![code/datums/skills/_skill.dm 17](git.png)
Skill datums
Vars | |
abstract_type | Abstract type |
---|---|
base_multiplier | Base multiplier used in skill competency operations. |
competency_multiplier | Value added to the base multiplier depending on overall competency compared to maximum value/level. |
competency_thresholds | skill threshold used in generic skill competency operations. |
desc | Our description |
item_skill_gain_multi | Experience gain multiplier gained from using items. |
max_levels | List of max levels. Only used in level skills, but present here for helper macros. |
name | Our name |
name_color | Color of the name as shown in the html readout |
progression_type | Our progression type. These are mostly used to skip typechecks overhead, don't go around messing with these. |
skill_gain_quantisation | Skill gain quantisation |
skill_traits | A list of ways this skill can affect or be affected through actions and skill modifiers. |
ui_category | Index of this skill in the UI |
Procs | |
get_skill_data | Get a list of data used in the skill panel menu. |
is_value_greater | Checks if a value is greater |
sanitize_value | Ensures what someone's setting as a value for this skill is valid. |
set_skill_value | Sets the new value of this skill in the holder skills list. As well as possible feedback messages or secondary effects on value change, that's on you. |
Var Details
abstract_type ![code/datums/skills/_skill.dm 27](git.png)
Abstract type
base_multiplier ![code/datums/skills/_skill.dm 33](git.png)
Base multiplier used in skill competency operations.
competency_multiplier ![code/datums/skills/_skill.dm 35](git.png)
Value added to the base multiplier depending on overall competency compared to maximum value/level.
competency_thresholds ![code/datums/skills/_skill.dm 31](git.png)
skill threshold used in generic skill competency operations.
desc ![code/datums/skills/_skill.dm 21](git.png)
Our description
item_skill_gain_multi ![code/datums/skills/_skill.dm 37](git.png)
Experience gain multiplier gained from using items.
max_levels ![code/datums/skills/_skill.dm 29](git.png)
List of max levels. Only used in level skills, but present here for helper macros.
name ![code/datums/skills/_skill.dm 19](git.png)
Our name
name_color ![code/datums/skills/_skill.dm 23](git.png)
Color of the name as shown in the html readout
progression_type ![code/datums/skills/_skill.dm 25](git.png)
Our progression type. These are mostly used to skip typechecks overhead, don't go around messing with these.
skill_gain_quantisation ![code/datums/skills/_skill.dm 39](git.png)
Skill gain quantisation
skill_traits ![code/datums/skills/_skill.dm 41](git.png)
A list of ways this skill can affect or be affected through actions and skill modifiers.
ui_category ![code/datums/skills/_skill.dm 43](git.png)
Index of this skill in the UI
Proc Details
get_skill_data
Get a list of data used in the skill panel menu.
is_value_greater
Checks if a value is greater
sanitize_value
Ensures what someone's setting as a value for this skill is valid.
set_skill_value
Sets the new value of this skill in the holder skills list. As well as possible feedback messages or secondary effects on value change, that's on you.